N = int(input()) ans = "NO" for i in range(2, int(N ** 0.5) + 1): if N % i == 0: ans = "YES" print(ans)