import math N = int(input()) for x in range(2, int(math.sqrt(N))+1): if N % x == 0: print("YES") break else: print("NO")