Problem:
 Score : 100 points    Problem Statement Shichi-Go-San (literally "Seven-Five-Three") is a traditional event in a certain country to celebrate the growth of seven-, five- and three-year-old children.  Takahashi is now X years old. Will his growth be celebrated in Shichi-Go-San this time?      Constraints  1 ≤ X ≤ 9  X is an integer.         Input Input is given from Standard Input in the following format:  X       Output If Takahashi's growth will be celebrated, print YES ; if it will not, print NO .        Sample Input 1 5      Sample Output 1 YES  The growth of a five-year-old child will be celebrated.       Sample Input 2 6      Sample Output 2 NO  See you next year.

Solution (Python):
x = int(input())

if x==7 or x==5 or x==3:
    print("YES")
else:
    print("NO")

Solution (Python):
x=int(input())
if x==3 or x==5 or x==7:
    print('YES')
else:
    print('NO')

Solution (Python):
print(" YNEOS"[input()in'357'::2])

Solution (Python):
x = input()
if x in ['7', '5', '3']:
  print("YES")
else:
  print("NO")

Solution (Python):
print("YES" if input() in "753" else "NO")

Solution (Python):
x=int(input())
if x==7 or x==5 or x==3:
    print("YES")
else:
    print("NO")

Solution (Python):
print('YES' if input()in ['7', '5', '3'] else 'NO')

Solution (Python):
def test():
    year = [3,5,7]
    x = int(input())

    if x in year:
        print("YES")
    else:
        print("NO")


if __name__ == "__main__":
    test()

Solution (Python):
import math





inputa = input().split()


a = int(inputa[0])






list = [7, 5, 3]

flg = 0
for i in range (len(list)):
    if a == list[i]:
        flg = 1

if flg == 0:
    print("NO")
else:
    print("YES")

Solution (Python):
x = input()
print("YES" if x in "357" else "NO")

Solution (Python):
X = int(input())
if X == 3 or X == 5 or X == 7:
  print('YES')
else:
  print('NO')

Solution (Python):
x=input()
if x in "753":
    print("YES")
else:
    print("NO")

Solution (Python):
x = input()
if x == "3" or x == "5" or x == "7":
    print("YES")
else:
    print("NO")

Solution (Python):
X = int(input())
if X in [3,5,7]:
  print("YES")
else:
  print("NO")

Solution (Python):
X=int(input())

if X==7:
    print('YES')
elif X==5:
    print('YES')
elif X==3:
    print('YES')
else:
    print('NO')

Solution (Python):
print("YES" if int(input()) in [3,5,7] else "NO")

Solution (Python):
print("YES" if int(input()) in [3,5,7] else "NO")

Solution (Python):
X = int(input())
print ("YES" if X == 7 or X== 5 or X == 3 else "NO")

Solution (Python):
X = int(input())
if X == 3 or X == 5 or X == 7:
  print("YES")
else:
  print("NO")

Solution (Python):
print(("NO","YES")[int(input()) in (3,5,7)])

Solution (Python):
import math
import sys
import itertools
import queue
from fractions import gcd

def lcm(a, b):
    return a * b // gcd(a, b)

def combination(n, r):
    return factorial(n) // (factorial(n - r) * factorial(r))

sys.setrecursionlimit(10000)

mod = 1000000007

"""

a = 100
b = 0.987654321
print("{0:06d}-{1:6f}".format(a,b))
000100-0.987654


char_list = list("abcd") 



    = sys.stdin.readline().rstrip()
    = list(sys.stdin.readline().rstrip())


    = int(sys.stdin.readline())
    = map(int, sys.stdin.readline().split())
    = list(map(int, sys.stdin.readline().split()))
    = [list(map(int,list(sys.stdin.readline().split()))) for i in range(h)]  
"""

if __name__ == "__main__":
    X = int(input())
    l = [7,5,3]
    if X in l:
        print("YES")
    else:
        print("NO")

Solution (Python):
N = input()
if N in '753':
  print('YES')
else:
  print('NO')

Solution (Python):
x=int(input()); print('YES' if x in [3,5,7] else 'NO')

Solution (Python):
X=int(input())
print("YES" if X in [3,5,7] else "NO")

Solution (Python):
x=input()
List=['3','5','7']
if x in List:
  print('YES')
else:
  print('NO')

Solution (Python):
x = int(input())
if x in [3,5,7]:
    print("YES")
else:
    print("NO")

Solution (Python):
old = int(input())
if old == 7 or old ==5 or old ==3:
  print("YES")
else:
  print("NO")

Solution (Python):
X = input()
if X == "3" or X == "5" or X == "7":
  print("YES")
else:
  print("NO")

Solution (Python):
print('YES' if input() in '357' else 'NO')

Solution (Python):
x = int(input())
if x == 3 or x == 5 or x == 7:
    print('YES')
else:
  print('NO')

Solution (Python):

x = int(input())
if x == 3 or x == 5 or x == 7:
    print('YES')
else:
    print('NO')

Solution (Python):
a = input()
a = int(a)

if a == 7 or a == 5 or a == 3:
    print('YES')
else:
    print('NO')

Solution (Python):




age = input()
age = int(age)

if age == 7 or age == 5 or age == 3:
    print('YES')
else:
    print('NO')

Solution (Python):


x = int(input())
if x == 7 or x == 5 or x == 3:
    print('YES')
else:
    print('NO')

Solution (Python):
x = int(input())
if x == 7 or x == 5 or x == 3:
  print("YES")
else:
  print("NO")

Solution (Python):
x = int(input())
if x == 3 or x == 5 or x == 7:
  print("YES")
else:
  print("NO")

Solution (Python):
X = int(input())

ans = "NO"
if (X == 3 or X == 5 or X == 7):
  ans = "YES"
print(ans)

Solution (Python):
y = int(input())
print('YES') if y==3 or y==5 or y==7 else print('NO')

Solution (Python):
x = int(input())
if x == 7 or x == 5 or x == 3:
    print('YES')
else:
    print('NO')

Solution (Python):
x = int(input())
 
if x==7 or x==5 or x==3:
  print("YES")
else:
  print("NO")

Solution (Python):
x=int(input())
if x in [3,7,5]:
    print("YES")
else:
    print("NO")

Solution (Python):
x = int(input())
if x in [3,5,7]:
  print("YES")
else:
  print("NO")

Solution (Python):
a=int(input())
if a == 3 or a == 5 or a == 7:
  print('YES')
else:
  print('NO')

Solution (Python):
x = int(input())
if x == 3 or x == 5 or x == 7:
    print("YES")
else:
    print("NO")

Solution (Python):
n1 = int(input())

r1 = "NO"
if n1 == 7 or n1 == 5 or n1 == 3:
    r1 = "YES"

print(r1)

Solution (Python):
x=int(input())
if x % 2 != 0:
  if x == 1 or x==9:
    print('NO')
  else:
    print('YES')
else:
  print('NO')

Solution (Python):
def main():
    N = int(input())

    if N==3 or N==5 or N==7:
        print('YES')
    else:
        print('NO')


if __name__ == '__main__' :
    main()

Solution (Python):
def main():
    N = int(input())

    if N in [7,5,3]:
        print('YES')
    else:
        print('NO')


if __name__ == '__main__' :
    main()

Solution (Python):
N= int(input())
if N==3 or N==5 or N==7:
	print("YES")
else:
	print("NO")

Solution (Python):
N = int(input())
l =[3,5,7]
if N in l:
    print("YES")
else:
    print("NO")

Solution (Python):
N = int(input())
if N == 3 or N == 5 or N == 7:
  print("YES")
else:
  print("NO")

Solution (Python):
X = int(input())
if X == 7 or X == 5 or X == 3:
    print('YES')
else:
    print('NO')

Solution (Python):
x = int( input() )

if x == 7 or x == 5 or x == 3:
  print('YES')
else:
  print('NO')

Solution (Python):
x = int(input())

if x == 3 or x == 5 or x == 7:
    print('YES')
else:
    print('NO')

Solution (Python):

n = int(input())
happy = [3,5,7]
if n in happy:
  print('YES')
else:
  print('NO')

Solution (Python):
X = input()
if(X == '3' or X == '5' or X == '7'):
  print("YES")
else:
  print("NO")

Solution (Python):


X = int(input())

if X == 3 or X == 5 or X == 7:
    print("YES")
else:
    print("NO")

Solution (Python):
num = int(input())
if num==3 or num==5 or num==7: print('YES')
else: print('NO')

Solution (Python):
X = int(input())
if X == 7 or X == 5 or X == 3:
    print('YES')
else:
    print('NO')

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

Solution (Python):
X = int(input())
if X == 7 or X == 5 or X == 3:
    print('YES')
else:
    print('NO')

Solution (Python):
a = int(input())
if a ==3 or a==5 or a ==7:
    ans = 'YES'
else:
    ans = 'NO'

print(ans)

Solution (Python):
x = int(input())
if x in [3, 5, 7]:
  print("YES")
else:
  print("NO")

Solution (Python):
x = int(input())
a = [3,5,7]
if x in a:
    print("YES")
else:
    print("NO")

Solution (Python):
X = int(input())
if X == 3 or X == 5 or X == 7:
    print("YES")
else:
    print("NO")

Solution (Python):
Y = int(input())
if Y==7 or Y==5 or Y==3:
    print('YES')
else:
    print('NO')

Solution (Python):
S = input().strip()
if S in '753':
  print("YES")
else:
  print("NO")

Solution (Python):
x = int(input())

if x == 7 or x == 5 or x == 3:
    print("YES")
else:
    print("NO")

Solution (Python):
print('YES' if input() in '753' else 'NO')

Solution (Python):


x = int(input())
print('YES' if x in [3,5,7] else 'NO')

Solution (Python):
X = int(input())
 
if X == 3 or X == 5 or X == 7:
  print("YES")
else:
  print("NO")

Solution (Python):
X=int(input())
if X==3 or X==5 or X==7:
	print('YES')
else:
	print('NO')

Solution (Python):
X = int(input())

if X == 7 or X == 5 or X == 3:
  print("YES")
else:
  print("NO")

Solution (Python):
X = int(input())
c = [3,5,7]

if X in c:
  print("YES")
else:
  print("NO")

Solution (Python):
X = int(input())
if X in [3,5,7]:
  print("YES")
else:
  print("NO")

Solution (Python):
X = int(input())
if X == 3 or X == 5 or X ==7:
  print("YES")
else:
  print("NO")

Solution (Python):
X = input()
X = int(X)

if X == 3 or X == 5 or X == 7:
    print("YES")
else:
    print("NO")

Solution (Python):
N = int(input())
print("YES" if N in [7, 5, 3] else "NO")

Solution (Python):
x = int(input())
if x == 7 or x == 5 or x == 3:
    print("YES")
else:
    print("NO")

Solution (Python):
print('YES' if int(input()) in [3,5,7] else 'NO')

Solution (Python):
age = int(input())
if age == 3 or age == 5 or age == 7:
  print('YES')
else:
  print('NO')

Solution (Python):
x = int(input())
if x == 3 or x == 5 or x == 7:
    print("YES")
else:
    print("NO")

Solution (Python):
print("NYOE S"[input()in"357"::2])

Solution (Python):
x = int(input())
print('YES' if x in [7, 5, 3] else 'NO')

Solution (Python):
print("YES") if(int(input())in[7,5,3])else print("NO")

Solution (Python):
x = int(input())
if x == 7 or x ==5 or x ==3:
  print('YES')
else:
  print('NO')

Solution (Python):
X = int(input())
if X == 3:
    print("YES")
elif X == 5:
    print("YES")
elif X == 7:
    print("YES")
else:
    print('NO')

Solution (Python):
x=input()
if x == '7' or x == '5' or x == '3':
    print('YES')
else:
    print('NO')

Solution (Python):



X = int(input())



if X == 7:
    print('YES')
elif X == 5:
    print('YES')
elif X == 3:
    print('YES')    
else:
    print('NO')

Solution (Python):
print('YES' if input() in ('3','5','7') else 'NO')

Solution (Python):
list_753 = [7,5,3]
if int(input()) in list_753:
    print("YES")
else:
    print("NO")

Solution (Python):
def main41():
    num = int(input())
    if num ==3 or num == 5 or num == 7:
        print("YES")
    else:
        print("NO")

if __name__ == "__main__":
    main41()

Solution (Python):
x = int(input())

if x == 7 or x == 5 or x == 3:
	print('YES')
else:
	print('NO')

Solution (Python):
print('YES' if int(input()) in[7,5,3] else 'NO')

Solution (Python):
x = int(input())
if x == 3 or x == 5 or x == 7:
    print('YES')
else:
    print('NO')

Solution (Python):
x=int(input())
if x==7 or x==5 or x==3:
  print("YES")
else:
  print("NO")

Solution (Python):
n = int(input())
l = [3,5,7]
if n in l:
  print('YES')
else:
  print('NO')

Solution (Python):

x=input()
print("NO" if "735".find(x) == -1 else "YES")

Solution (Python):
x = int(input())

if x in (7, 5, 3):
  print("YES")
else:
  print("NO")

Solution (Python):
import sys
from collections import deque

sys.setrecursionlimit(4100000)


def inputs(num_of_input):
    ins = [input() for i in range(num_of_input)]
    return ins


def solve(inputs):
    X = int(inputs[0])
    if X == 3 or X == 5 or X == 7:
        return "YES"
    return "NO"


def string_to_int(string):
    return list(map(int, string.split()))


if __name__ == "__main__":
    ret = solve(inputs(1))
    print(ret)

Solution (Python):
x = int(input())

if x == 7 or x == 5 or x == 3:
    print("YES")
else:
    print("NO")

Solution (Python):
x=input()
if x in "753":
    print("YES")
else:
    print("NO")

Solution (Python):
X = int(input())
if X == 7 or X == 5 or X == 3:
    print('YES')
else:
    print('NO')

Solution (Python):
X = int(input())

if X == 3 or X == 5 or X == 7:
    print("YES")
else:
    print("NO")

Solution (Python):
print('YES' if input() in '753' else 'NO')

Solution (Python):

def main():

    N = int(input())

    if N == 3 or N== 5 or N == 7:
        print("YES")
    else:
        print("NO")
    


if __name__== "__main__":
    main()

Solution (Python):
x = int(input())
if x == 7 or x == 5 or x == 3:
  print("YES")
else:
  print("NO")

Solution (Python):
x = int(input())
if x == 7 or x == 5 or x == 3:
  print("YES")
else:
  print("NO")

Solution (Python):
if input() in "357":
  print("YES")
else:
  print("NO")

Solution (Python):
X = int(input())

if X==3 or X==5 or X==7:
  print("YES")
else:
  print("NO")

Solution (Python):
x = int(input())

li = [3,5,7]
if x in li:
    print("YES")
else:
    print("NO")

Solution (Python):
X = input()
if X == "3" or X == "5" or X == "7":
    print("YES")
else:
    print("NO")

Solution (Python):
x=int(input())
res='NO'
if x==7 or x==5 or x==3:
	res='YES'
print(res)

Solution (Python):
X = int(input())

if X == 3 or X == 5 or X == 7 :
    print('YES')
else :
    print('NO')

Solution (Python):
x = int( input() )

if x == 7 or x == 5 or x == 3:
    print('YES')
else:
    print('NO')

Solution (Python):
x = int(input())
if x ==3 or x == 5 or x == 7:
  print('YES')
else:
  print('NO')

Solution (Python):
x = int(input())

y = [3,5,7]

if x in y:
    print("YES")
else:
    print("NO")

Solution (Python):
x=int(input())
age=[3,5,7]
if any(x==age[i] for i in range(3)):
    print("YES")
else:
    print("NO")

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

Solution (Python):
N = int(input())

if N == 3 or N == 5 or N == 7 :
    print('YES')
else :
    print('NO')

Solution (Python):
n = int(input())

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

Solution (Python):
a=int(input())
if a==3 or a==5 or a==7:
    print("YES")
else:
    print("NO")

Solution (Python):
if int(input()) in [3,5,7]:print("YES")
else:print("NO")

Solution (Python):
print('YES' if input() in '753' else 'NO')

Solution (Python):
if input() in '753':
    print('YES')
else:
    print('NO')

Solution (Python):
X = int(input())
if X == 3 or X == 5 or X == 7:
    print ('YES')
else:
    print ('NO')

Solution (Python):
if int(input()) in [7, 5, 3]:
    print('YES')
else:
    print('NO')

Solution (Python):
a= int(input());print('YNEOS'[a not in[3,5,7]::2])

Solution (Python):
age753 = [7, 5, 3]
X = int(input())
if X in age753:
	print('YES')
else:
	print('NO')

Solution (Python):
n = int(input())
print('YES' if n==3 or n==5 or n==7 else 'NO')

Solution (Python):
X = input()
if X in ['3', '5', '7']:
  print('YES')
else:
  print('NO')

Solution (Python):
def main():
    x = input()
    if x in ['3', '5', '7']:
        print('YES')
    else:
        print('NO')


main()

Solution (Python):
X = int(input())

if X == 3 or X == 5 or X == 7:
  print("YES")
else:
  print("NO")

Solution (Python):


X=int(input())

if X==7 or X==5 or X==3:
    print("YES")
else:
    print("NO")

Solution (Python):

from collections import defaultdict
from collections import deque
from heapq import heappush, heappop
import sys
import math
import bisect
import random
import itertools
sys.setrecursionlimit(10**5)
stdin = sys.stdin
bisect_left = bisect.bisect_left
bisect_right = bisect.bisect_right
def LI(): return list(map(int, stdin.readline().split()))
def LF(): return list(map(float, stdin.readline().split()))
def LI_(): return list(map(lambda x: int(x)-1, stdin.readline().split()))
def II(): return int(stdin.readline())
def IF(): return float(stdin.readline())
def LS(): return list(map(list, stdin.readline().split()))
def S(): return list(stdin.readline().rstrip())
def IR(n): return [II() for _ in range(n)]
def LIR(n): return [LI() for _ in range(n)]
def FR(n): return [IF() for _ in range(n)]
def LFR(n): return [LI() for _ in range(n)]
def LIR_(n): return [LI_() for _ in range(n)]
def SR(n): return [S() for _ in range(n)]
def LSR(n): return [LS() for _ in range(n)]
mod = 1000000007
inf = float('INF')


def A():
    n = II()
    a = [7,5,3]
    if n in a:
        print("YES")
    else:
        print("NO")
    return


def B():
    return


def C():
    return


def D():
    return


def E():
    return


def F():
    return


def G():
    return


def H():
    return


if __name__ == '__main__':
    A()

Solution (Python):
x = int(input())
if x == 7 or x == 5 or x == 3:
    print("YES")
else:
    print("NO")

Solution (Python):
x = int(input())
if x == 7 or x == 5 or x == 3:
  print('YES')
else:
  print('NO')

Solution (Python):
a = int(input())
if a == 3 or a == 5 or a == 7:
    print("YES")
else:
    print("NO")

Solution (Python):

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

Solution (Python):
x=int(input())
if x==3 or x==5 or x==7:
  print("YES")
else:
  print("NO")

Solution (Python):
if int(input()) in [3, 5, 7]:
  print("YES")
else:
  print("NO")

Solution (Python):
X = int(input())

if X == 3 or X == 5 or X == 7:
	print('YES')
else:
	print('NO')

Solution (Python):
import sys

X = int(input())

if X == 3 or X == 5 or X == 7:
    print('YES')

else:
    print('NO')

Solution (Python):
t=[3,5,7]
if int(input()) in t:
  print('YES')
else:
  print('NO')

Solution (Python):
X = int(input())


if X == 3 or X == 5 or X == 7:
    print("YES")
else:
    print("NO")

Solution (Python):
n = int(input())

if(n == 3 or n == 5 or n == 7):
    print('YES')
else:
    print('NO')

Solution (Python):
print("YNEOS"[not(int(input())in[3,5,7])::2])

Solution (Python):
X=int(input())
if X==3 or X==5 or X==7:
  print("YES")
else:
  print("NO")

Solution (Python):
X = int(input())

if X == 3 or X == 5 or X == 7:
  print("YES")
else:
  print("NO")

Solution (Python):
x = int(input())

if x == 3 or x == 5 or x == 7:
    print('YES')
else:
    print('NO')

Solution (Python):
x = int(input())
if x ==3 or x==5 or x==7:
    print("YES")
else:
    print("NO")

Solution (Python):
x=int(input())
if x==3 or x==5 or x==7:
  print("YES")
else:
  print("NO")

Solution (Python):
print('YES' if input() in '357' else 'NO')

Solution (Python):
x = int(input())
print("YES") if x == 7 or x == 5 or x == 3 else print("NO")

Solution (Python):



x = int(input())

if x == 7 or x == 5 or x == 3:
    print('YES')
else:
    print('NO')

Solution (Python):
a = int(input())
 
if (a == 7) or (a == 5) or (a == 3):
  print("YES")
else:
  print("NO")

Solution (Python):
print('YES' if int(input()) in [3,5,7] else 'NO')

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

Solution (Python):
print("YES" if input() in ["3","5","7"] else "NO")

Solution (Python):
a = int(input())
if a == 3 or a == 5 or a == 7:
    print("YES")
else:
    print("NO")

Solution (Python):
x = int(input())
if x in [3,5,7]:
  print('YES')
else:
  print('NO')

Solution (Python):
X = int(input())
if X == 7 or X == 5 or X == 3:
    print("YES")
else:
    print("NO")

Solution (Python):

a=int(input())

if a==7 or a==5 or a==3:
    print("YES")
else:
    print("NO")

Solution (Python):

x = int(input())
if x == 3 or x == 5 or x == 7:
  print("YES")
  exit()
print("NO")

Solution (Python):
x = int(input())
if x in [7, 5, 3]:
    print("YES")
else:
    print("NO")

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

Solution (Python):
x = int(input())
if x == 3 or x ==5 or x ==7:print("YES")
else:print("NO")

Solution (Python):
x = int(input())
print('YES') if x == 3 or x == 5 or x == 7 else print('NO')

Solution (Python):
S = input()
if S in "7 5 3".split():
  print("YES")
else:
  print("NO")

Solution (Python):


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

Solution (Python):
ls = [3,5,7]
if int(input()) in ls:
  print('YES')
else:
  print('NO')

Solution (Python):
x = int(input())
a = [7, 5, 3]
print('YES' if x in a else 'NO')

Solution (Python):
x = int(input())
L = [3, 5, 7]
print("YES" if x in L else "NO")

Solution (Python):
X = int(input())

if X == 3 or X == 5 or X == 7:
  print("YES")
else:
  print("NO")

Solution (Python):
age = int(input())
if age == 3 or age == 5 or age == 7:
  print("YES")
else:
  print("NO")

Solution (Python):
a = int(input())

if a==3 or a==5 or a==7:
  print("YES")
else:
  print("NO")

Solution (Python):
a = int(input())
if a==3or a==5or a==7:
  print("YES")
else:
  print("NO")

Solution (Python):
X=int(input())

if X==3 or X==5 or X==7:
    print('YES')
else:
    print('NO')

Solution (Python):
print('YES' if [7,5,3].count(int(input())) else 'NO')

Solution (Python):
x = int(input())
print('YES' if [7,5,3].count(x) else 'NO')

Solution (Python):
x=int(input())
print('YES' if x in set([3,5,7]) else 'NO')

Solution (Python):
import sys
input = sys.stdin.readline

def main():
	x = int(input().strip())
	if x == 3 or x == 5 or x == 7:
		print('YES')
	else:
		print('NO')

if __name__ == '__main__':
	main()

Solution (Python):
x = int(input())
print('YES' if x==7 or x==5 or x==3 else 'NO')

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

Solution (Python):
X = int(input())
if X == 3 or X == 5 or X == 7:
  print('YES')
else:
  print('NO')

Solution (Python):
lst =[7,5,3]
x = int(input())
if x in lst:
    print('YES')
else:
    print('NO')

Solution (Python):



X = int(input())


ans = "YES" if X == 7 or X == 5 or X == 3 else "NO"


print(ans)

Solution (Python):
X = int(input())
if X == 7 or X == 5 or X ==3:
  print("YES")
else:
  print("NO")

Solution (Python):
X = int(input())
print('YES' if X == 3 or X == 5 or X == 7 else 'NO')

Solution (Python):
print(" YNEOS"[input()in"357"::2])

Solution (Python):
print("YNEOS"[2+~(int(input()) in [3,5,7])::2])

Solution (Python):
X=int(input())
if X==3:
  print("YES")
elif X==5:
  print("YES")
elif X==7:
  print("YES")
else:
  print("NO")

Solution (Python):
X = int(input())
mylist = [3,5,7]
if X in mylist:
    print("YES")
else:
    print("NO")

Solution (Python):
x = int(input())
if x in (3, 5, 7):
  print("YES")
else:
  print("NO")

Solution (Python):
x = int(input())

if x == 7 or x == 5 or x == 3:
    print("YES")
else:
    print("NO")

Solution (Python):
a=int(input())
if a==7 or a==5or a==3:
  print("YES")
else:
  print("NO")

Solution (Python):
X = int(input())

if X==3 or X==5 or X==7:
    print('YES')
else:
    print('NO')

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

Solution (Python):
print('YES' if int(input()) in [7,5,3] else 'NO')

Solution (Python):
nl = lambda: list(map(int, input().split()))
sl = lambda: input().split()
n = lambda: int(input())
s = lambda: input()

X = n()
if X == 3 or X == 5 or X == 7:
    print('YES')
else:
    print('NO')

Solution (Python):
X = int(input())
if X == 3 or X == 5 or X == 7:
    print("YES")
else:
    print("NO")

Solution (Python):
N=int(input())
if N == 3 or N == 5 or N == 7:
    print('YES')
else:
    print('NO')

Solution (Python):
x = int(input())
lists = [3,5,7]
if x in lists:
    print("YES")
else:
    print("NO")

Solution (Python):
X = int(input())
if X == 7 or X == 5 or X == 3:
  print("YES")
else:
  print("NO")

Solution (Python):
x = int(input())

if x == 3 or x == 5 or x == 7:
    print('YES')
else:
    print('NO')

Solution (Python):
x=int(input())
if x==3:
    print("YES")
elif x==5:
    print("YES")
elif x==7:
    print("YES")
else:
    print("NO")

Solution (Python):
X = int(input())
if X == 3 or X == 5 or X ==7:
  print('YES')
else:
  print('NO')

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

Solution (Python):
x = int(input())

if x == 3 or x == 5 or x == 7:
    print("YES")
else:
    print("NO")

Solution (Python):
x = int(input())
print('YES' if x in [7,5,3] else 'NO')

Solution (Python):
X = int(input())
if X==7 or X==5 or X==3:
  print('YES')
else:
  print('NO')

Solution (Python):
x=int(input())
if x == 7 or x == 5 or x == 3:
  print("YES")
else:
  print("NO")

Solution (Python):
a = int(input())

if a == 3 or a == 5 or a == 7:
    print("YES")
else:
    print("NO")

Solution (Python):
a=input()
if a in ('3','5','7'):
  print('YES')
else:
  print('NO')

Solution (Python):
x = int(input())
if x == 3 or x == 5 or x == 7:
    print("YES")
else:
    print("NO")

Solution (Python):
X = int(input())
if X == 7 or X == 5 or X == 3:
	print('YES')
else:
	print('NO')

Solution (Python):

X = int(input())

if X == 3 or X == 5 or X == 7:
    print('YES')
else:
    print('NO')

Solution (Python):
X=int(input())
if X==3 or X==5 or X==7:
  print('YES')
else:
  print('NO')

Solution (Python):
x = int(input())
if x == 7 or x == 5 or x == 3:
    print('YES')
else:
    print('NO')

Solution (Python):
x = int(input())
if x in [7,5,3]:
  print('YES')
else:
  print('NO')

Solution (Python):
a = int(input())
if a == 3 or a == 5 or a == 7:
    print("YES")
else:
    print("NO")

Solution (Python):
a = int(input())
if a == 3 or a == 5 or a == 7:
  print("YES")
else:
  print("NO")

Solution (Python):
X = int(input())
if (X == 7) or (X == 5) or (X == 3):
    print("YES")
else:
    print("NO")

Solution (Python):
X = int(input())

if(X == 3 or X == 5 or X == 7):
    print('YES')
else:
    print('NO')

Solution (Python):

import sys

YES = "YES"  
NO = "NO"  

def solve(X: int):
    if X in {7, 5, 3}:
        print("YES")
    else:
        print("NO")
    return



def main():
    def iterate_tokens():
        for line in sys.stdin:
            for word in line.split():
                yield word
    tokens = iterate_tokens()
    X = int(next(tokens))  
    solve(X)

if __name__ == '__main__':
    main()

Solution (Python):
print("YES" if int(input()) in [3, 5, 7] else "NO")

Solution (Python):
x = int(input())
if x in [3,5,7]:
    print('YES')
else:
    print('NO')

Solution (Python):
x=int(input())
print('YES' if x==3 or x==5 or x==7 else 'NO')

Solution (Python):
print("YES" if int(input()) in [7,5,3] else "NO")

Solution (Python):
a = int(input())
if a == 3 or a == 5 or a == 7:
  print("YES")
else:
  print("NO")

Solution (Python):
X = int(input())
if X==7 or X==5 or X==3:
  print("YES")
else:
  print("NO")

Solution (Python):
print('YES'if input()in'357'else'NO')

Solution (Python):
def abc():
    x = int(input().rstrip())
    print('YES' if x in [3, 5, 7] else 'NO')


abc()

Solution (Python):
X = int(input())
 
if X == 3 or X == 5 or X == 7:  
    print("YES")
else:
    print("NO")

Solution (Python):
X = int(input())

if X == 3 or X == 5 or X == 7:
    print('YES')
else:
    print('NO')

Solution (Python):
x = int(input())
if x == 3 or x == 5 or x == 7:
    print("YES")
else:
    print("NO")

Solution (Python):
X = int(input())
if X == 7:
  print("YES")
elif X == 5:
  print("YES")
elif X == 3:
  print("YES")
else:
  print("NO")

Solution (Python):
x= int(input())
if x == 3 or x== 5 or x == 7:
  print("YES")
else:
  print("NO")

Solution (Python):
x = int(input())
if x == 7 or x == 5 or x == 3:
  print('YES')
else:
  print('NO')

Solution (Python):
a = int(input())

if a == 7 or a == 5 or a == 3:
    print("YES")
else:
    print("NO")

Solution (Python):
x=int(input())
if x==7 or x==5 or x==3:
    print('YES')
else:
    print('NO')

Solution (Python):
x = int(input())
if x == 7:
  ans = 'YES'
elif x == 5:
  ans = 'YES'
elif x == 3:
  ans = 'YES'
else:
  ans = 'NO'
print(ans)

Solution (Python):
X = int(input())
A = [3, 5, 7]
if X in A:
  print('YES')
else:
  print('NO')

Solution (Python):
x=input()
if x=='7' or x=='5' or x=='3':
  print('YES')
else:
  print('NO')

Solution (Python):
X = int(input())

if X == 3 or X == 5 or X == 7:
    print("YES")

else:
    print("NO")

Solution (Python):
y = int(input())
print("YES" if y == 7 or y == 5 or y == 3 else
      "NO")

Solution (Python):
X = int(input())

if X == 3 or X == 5 or X == 7:
  print('YES')
  
else:
  print('NO')

Solution (Python):
if input() in "753":
    print("YES") 
else:
    print("NO")

Solution (Python):
X = int(input())

if(X == 3):
    print("YES")
elif(X == 5):
    print("YES")
elif(X == 7):
    print("YES")
else:
    print("NO")

Solution (Python):
x = int(input())

if x == 3 or x == 5 or x==7:
    print("YES")
else:
    print("NO")

Solution (Python):
x = int(input())
print("YES" if x == 3 or x == 5 or x == 7 else "NO" )

Solution (Python):
if int(input()) in [3,5,7]:
    print("YES")
else:
    print("NO")

Solution (Python):
x = int(input())
if x == 7 or x == 5 or x == 3:
  print("YES")
else:
  print("NO")

Solution (Python):
X = int(input())

if X == 3 or X == 5 or X == 7:
    print('YES')
else:
    print('NO')

Solution (Python):
a = int(input())
print("YES" if a == 7 or a == 5 or a == 3 else "NO")

Solution (Python):
X = int(input())

if X in (3, 5, 7):
    print('YES')
    
else:
    print('NO')

Solution (Python):
X = int(input())

if X == 7 or X == 3 or X == 5:
    print('YES')
else:
    print('NO')

Solution (Python):
print("YES" if input() in "753" else "NO")

Solution (Python):
X = int(input())
if X==3 or X==5 or X==7:
    print('YES')
else:
    print('NO')

Solution (Python):




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

Solution (Python):
x=int(input())
if x==7 or x==5 or x==3:
  print("YES")
else:
  print("NO")

Solution (Python):


x = int(input())

if x == 7 or x == 5 or x == 3:
    print('YES')
else:
    print('NO')

Solution (Python):
x = input()

print("YES" if "7" in x or "5" in x or "3" in x else "NO")

Solution (Python):
x = int(input())
if x == 3 or x == 5 or x == 7 :
        print('YES')
else:
        print('NO')

Solution (Python):
X = int(input())

if(X == 5 or X == 7 or X == 3):
    print('YES')
else:
    print('NO')

Solution (Python):
a=int(input())
if a == 3 or a == 5 or a == 7:
  print('YES')
else:
  print('NO')

Solution (Python):
X = int(input())
if X == 3 or X == 5 or X == 7:
    print('YES')
else:
    print('NO')

Solution (Python):
X = int(input())
if X == 3 or X == 5 or X == 7:
    print('YES')
else:
    print('NO')

Solution (Python):
if (int(input()) in [3,5,7]): print("YES")
else: print("NO")

Solution (Python):
if (int(input()) in [3,5,7]): print("YES")
else: print("NO")

Solution (Python):
x = int(input())

if x ==3 or x==5 or x==7:
  print('YES')
else:
  print('NO')

Solution (Python):
x=int(input())
print("YES" if x==7 or x==5 or x==3 else "NO")

Solution (Python):
a =input()
a =int(a)

if a == 7 or a == 5 or a == 3:
  print('YES')
else:
  print('NO')

Solution (Python):
X = int(input())

if X in (7,5,3):
    print("YES")
else:
    print("NO")

Solution (Python):
X = int(input())
if (X == 7) or (X == 5) or (X == 3):
    print('YES')
else:
    print('NO')

Solution (Python):
n=int(input())

if n==7 or n==5 or n==3:
    print("YES")

else:
    print("NO")

Solution (Python):




def main():
	X = int(input())
	if X == 7 or X == 5 or X == 3:
		print('YES')
	else:
		print('NO')

if __name__ == '__main__':
	import sys
	sys.exit(main())

Solution (Python):
x=input()
print("YES" if x in "753" else "NO")

Solution (Python):
print(["NO","YES"][[3,5,7].count(int(input()))])

Solution (Python):
from sys import stdin
X = int(stdin.readline().rstrip())
if X == 7 or X == 5 or X == 3:
    print('YES')
else:
    print('NO')

Solution (Python):
X=int(input())
if X==3 or X==5 or X==7: print("YES")
else: print("NO")

Solution (Python):
a=int(input())
if(a==7 or a==5 or a==3):
  print("YES")
else:
  print("NO")

Solution (Python):
x = int(input())
if x in [3, 5, 7]:
  print("YES")
else:
  print("NO")

Solution (Python):

X = int(input())

ans = "NO"

if (X == 3) or (X == 5) or (X == 7):

    ans = "YES"

print(ans)