Help me in solving ONEFULPAIRS problem

My issue

im uable to answer this

My code

# cook your dish here

Learning course: Practice Python
Problem Link: CodeChef: Practical coding for everyone

add (sum of both variable) and (product of both variable).
and use conditional operator to check if it equals to 111 if true print “YES” else “NO”