n,z=map(int,input().split()) r=min(int(z**.5)+1,z) z2=z**2 for x in range(1,r): print(x,y,r) if y.is_integer():print("Yes");break else: print("No")