N = int(input()) ans = "YES" two = "aa".count('a') for n in range(two, N): if not bool(N % n): ans = "NO" print(ans)