Help me in solving PYPRACMCQ9 problem

My issue

Explain your approach for solving this question

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

@sibiranganathl

You can solve it as below:

a, b=map(int, input().split())
if (a+b+(a*b)==111):
print (“Yes”)
else:
print (“No”)