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-----
5

-----Sample Output-----
YES

The growth of a five-year-old child will be celebrated.

Difficulty: introductory

Starter code:

Solutions:
n = int(input())
if any(c == n for c in [3, 5, 7] ) :
    print("YES")
else:
    print("NO")

# author:  Taichicchi
# created: 10.10.2020 23:10:27

import sys

X = int(input())

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


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

d = int(input())

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

import numpy as np
# import math

# from scipy.special import perm : perm(n, r, exact=True)
# from scipy.special import comb : comb(n, r, exact=True)

# import itertools
# for v in itertools.combinations(L, n):M.append(list(v))

# from numba import njit
# @njit('f8(i8,i8,i8,i8,f8[:,:,:])', cache=True)


""" Definitions  """

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

MOD = 10**9+7

# ============================================================
x = int(input())

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


print("YES"if input()in"753"else"NO")

ans=["YES","NO"][input() not in "357"]
print(ans)

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

x = int(input())

l = [7,5,3]

for i in l:
    if(x==i):
        print('YES')
        return
print('NO')

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

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

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

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

print('YES' if input() in '357' else 'NO')

N = str(input())
N_List = ["3","5","7"]
if N in N_List:
    print("YES")
else:
    print("NO")




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

def main():
    n = input()
    if n in ("3", "5", "7"): print("YES")
    else: print("NO")
    
    
main()

i = int(input())

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

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

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


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

X=input()
if X in "753":
  print("YES")
else:
  print("NO")

print(["NO","YES"][input() in "357"])

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

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


X=int(input())
print(["NO","YES"][X==3 or X==5 or X==7])

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

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

print("YES" if input() in "357" else "NO")

A = int(input())

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

import sys

read = sys.stdin.read
readline = sys.stdin.readline
readlines = sys.stdin.readlines
sys.setrecursionlimit(10 ** 9)
INF = 1 << 60
MOD = 1000000007


def main():
    X = int(readline())

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

    return


def __starting_point():
    main()

__starting_point()

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

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


n = int(input())

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

X = input()
if X in "753":
  print("YES")
else:
    print("NO")

a = input()
a = int(a)

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

X = int(input())

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

x = int(input())

if x == 3 or x == 5 or x == 7:
    ans = 'YES'
else:
    ans = 'NO'

print(ans)

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

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

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

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

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

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

n = int(input())

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


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

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


age = int(input())

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


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

x=int(input())
ans=["NO","YES"][x==7 or x==5 or x==3]
print(ans)

X = int(input())

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

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

rStr = input()

A = int(rStr.split(' ')[0])

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


X = int(input())
if X%2 == 1 and X != 1 and X != 9:
  print("YES")
else:
  print("NO")

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


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

ma = lambda :map(int,input().split())
lma = lambda :list(map(int,input().split()))
tma = lambda :tuple(map(int,input().split()))
ni = lambda:int(input())
yn = lambda fl:print("YES") if fl else print("NO")
import collections
import math
import itertools
import heapq as hq
import sys

x = ni()
f=False
if x in[3,5,7]:
    f=True
yn(f)


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


x = int(input())

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

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


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

x=input()
ans=["YES","NO"][x not in "357"]
print(ans)

X = int(input())

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

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

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

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

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

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


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

X = int(input())

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

X = input()
if  X in '753':
    print('YES')
else:
    print('NO')

a=int(input())
print(['NO','YES'][a == 7 or a==5 or a==3])

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

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

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

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

n = int(input())

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

else:
    print("NO")

c = input()
if c in "753":
  print("YES")
else:
  print("NO")


a=int(input())
print(["NO","YES"][a==3 or a==5 or a==7])

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

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

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

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


X = int(input())

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

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

X = int(input())

if  X < 9 and X > 1 and X % 2 == 1:
    print("YES")
else:
    print("NO")

x=int(input())

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

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

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

N=input()
print("YES" if N in "753" else "NO")

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


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

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

x = int(input())

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

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


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

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


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

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


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