import itertools

import math

import fractions

import functools

import copy



n = int(eval(input()))

if n ==7 or n ==5 or n == 3:

    print("YES")

else: print("NO")
def main():

    n = int(eval(input()))

    # t, a = map(int, input().split())

    # h = list(map(int, input().split()))

    # s = input()

    if n == 7 or n == 5 or n==3 :

        print("YES")

    else: print("NO")







if __name__ == '__main__':

    main()

import itertools
import math
import fractions
import functools
import copy

n = int(eval(input()))
if n == 7 or n == 5 or n == 3:
    print("YES")
else:
    print("NO")

def main():
    n = int(eval(input()))
    # t, a = map(int, input().split())
    # h = list(map(int, input().split()))
    # s = input()
    if n == 7 or n == 5 or n == 3:
        print("YES")
    else:
        print("NO")


if __name__ == "__main__":
    main()

-import itertools -import math -import fractions -import functools -import copy +def main(): +    n = int(eval(input())) +    # t, a = map(int, input().split()) +    # h = list(map(int, input().split())) +    # s = input() +    if n == 7 or n == 5 or n == 3: +        print("YES") +    else: +        print("NO") -n = int(eval(input())) -if n == 7 or n == 5 or n == 3: -    print("YES") -else: -    print("NO") + +if __name__ == "__main__": +    main()