def main(): n = int(input()) a = True b = True for i in range(n): if a: a=False continue if b: b=False continue if n%i == n%n: return 'NO' return 'NO' if b else 'YES' if __name__ == '__main__': print(main())