import math n = int(input()) a = 0 for i in range(2 , int(math.sqrt(n)) - 1): if n % i == 0: print("YES") a = 1 break if a == 0: print("NO")