N = int(input()) a = 1 for i in range(1,N+1): a *= (pow(2,i) - 1) b = pow(2,N+1)-1 #print(a,b) if a % b == 0: print('Yes') else: print('No')