# Write your code here :-)
a = [22,89,60,70,45,43,1,55]
b = int(input('请输入一个数:'))
c = int(input('请输入一个数:'))
d = 46
if b in a and c in a:
if b + c == d:
if b == 1 and c == 45 or b == 45 and c == 1:
print('Yes')
else:
print('No')