A = int(input()) while A % 2 == 0: A //= 2 if A > 1: print ("YES") else: print ("NO")