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