N = int(input()) if N%2 == 0: exit(print('YES')) i = 3 while i*i <= N: if N%i == 0: exit(print('YES')) i += 2 print('NO')