from math import sqrt n,z=map(int,input().split()) if n>=3: print("No") exit() elif n==1 and z==1: print("No") elif n==1 and z>=2: print("Yes") X=[] x=1 while x*x