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())
print('YES') if x==3 or x==5 or x==7 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):
x = int(input())
print('YES' if x in [7,5,3] else '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 in[3,5,7]:
  print('YES')
else:print('NO')

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

Solution (Python):
x = int(input())
if(x in [7,5,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):
i = input()

if i == 3 or i == 5 or i == 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):
n = int(input())
if n == 3 or n == 5 or n == 7:
    print("YES") 
else:
    print("NO")

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

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

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

Solution (Python):
n = int(input())
if n in [3,5,7]:
    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):
x = int(input())
list = {3, 5, 7}
if x in list:
    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):
x = int(input())

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

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

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

Solution (Python):


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

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


if __name__ == '__main__':
    main()

Solution (Python):
from collections import defaultdict, Counter
from itertools import product, groupby, count, permutations, combinations
from math import pi, sqrt
from collections import deque
from bisect import bisect, bisect_left, bisect_right
from string import ascii_lowercase
from functools import lru_cache
import sys
sys.setrecursionlimit(10000)
INF = float("inf")
YES, Yes, yes, NO, No, no = "YES", "Yes", "yes", "NO", "No", "no"
dy4, dx4 = [0, 1, 0, -1], [1, 0, -1, 0]
dy8, dx8 = [0, -1, 0, 1, 1, -1, -1, 1], [1, 0, -1, 0, 1, 1, -1, -1]


def inside(y, x, H, W):
    return 0 <= y < H and 0 <= x < W


def ceil(a, b):
    return (a + b - 1) // b



def gcd(a, b):
    if b == 0:
        return a
    return gcd(b, a % b)



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


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


if __name__ == '__main__':
    main()

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

Solution (Python):
import numpy as np

i = input()

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

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

Solution (Python):
n = int(input())
dig = [7,5,3]

if n in dig:
    print("YES")
else:
    print("NO")

Solution (Python):
x = int(input())
if((x==3)|(x==5)|(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())
print("YES" if n == 7 or n == 5 or n == 3 else "NO")

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

Solution (Python):
age = int(input())
shichigosanAges = {3, 5, 7}
print("YES" if age in shichigosanAges else "NO")

Solution (Python):


def main():
    s = int(input())

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


if __name__ == '__main__':
    main()

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

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

Solution (Python):
l = [7,5,3]
X =int(input())
if X in l:
    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 in [7, 5, 3]: print('YES')
else: print('NO')

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

Solution (Python):
def main():
  x = int(input())
  if x in [3, 5, 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):

print('YES' if 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):
n = int(input())

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

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

Solution (Python):
x = input()
a = '753'
if any(x==c for c in a):
    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())
flag=0
if (N==7):
  flag=1
if (N==5):
  flag=1
if (N==3):
  flag=1
  
if(flag==1):
  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):
shichigosan = [7, 5, 3]
X = int(raw_input())

ans = 'NO'

for i in range(0, 3):
	if X == shichigosan[i]: ans = 'YES'

print ans

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):
num = int(input())
if num in [7, 5, 3]:
  print("YES")
else:
  print("NO")

Solution (Python):
s = int(input())
if s==3 or s==7 or s==5:
 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())
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 print("NO")

Solution (Python):


x=int(input())

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

Solution (Python):






def main():
    X = int(raw_input().strip())

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


if __name__ == '__main__':
    main()

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

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

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


if __name__ == '__main__':
    main()

Solution (Python):


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

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())
print("{}".format("YES" if (n == 3 or n == 5 or n == 7) else "NO"))

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

if year < 1 or 9 < year:
    raise ValueError('Input value must be less than 9 and more than 1')
elif year in [3, 5, 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):
[print(["NO" if not [i for i in [int(input())] if i in [3, 5, 7]] else "YES" for i in [None]][0]) for i in [None]]

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

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

if n1==3 or n1==5 or n1==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):
n=int(input())
if n==7 or n==5 or n==3:
  print('YES')
else:
  print('NO')

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

Solution (Python):

import sys

s = input()

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

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

Solution (Python):
s = int(input())
if s==3 or s==5 or s==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):
fetchYear = int(input())


if fetchYear == 7 or fetchYear == 5 or fetchYear == 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):
n = int(input())
if n in [3,5,7]:
  print("YES")
else:
  print("NO")

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

Solution (Python):
old = int(input())
if old is 7 or old is 5 or old is 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 in [7, 5, 3]:
    print("YES")
else:
    print("NO")

Solution (Python):
""" Atcoder """

import sys
input = sys.stdin.readline

X = int(input())

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

Solution (Python):
age = int(input())
 
if age == 7 or age == 5 or age == 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 __name__ == '__main__':
    X = int(input())

    if X in [3, 5, 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):
a=int(input())
if a==3 or a==5 or a==7:
  print("YES")
else:
  print("NO")

Solution (Python):
X=int(input())
if X==3or 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):
a = int(input())

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

Solution (Python):
x=input()
print(['NO','YES'][x=='7' or x=='5' or x=='3'])

Solution (Python):

"""
Created on Wed Jan  2 15:24:02 2019

@author: Yamazaki Kenichi
"""

X = input()

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

print(ans)

Solution (Python):
a = input()

if a in '7' or a in '5' or a in '3':
    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):
N = int(input())

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

Solution (Python):
x=int(input())
if x==3 or x==5 or x==7:
    print('YES')
if x==1 or x==2 or x==4 or x==6 or x==8 or x==9:
    print('NO')

Solution (Python):
print('YES') if (int(input()) in [3,5,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==3 or X==5 or X==7: 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())
print('YES' if x in [3,5,7] else 'NO')

Solution (Python):
n=int(input())
if n == 3 or n == 5 or n == 7:
    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')

main()

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

Solution (Python):

"""
A - 753

"""
import sys
from sys import stdin
input = stdin.readline


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


def main(args):
    ans = solve()
    print(ans)


if __name__ == '__main__':
    main(sys.argv[1:])

Solution (Python):
i=int(input())
if (i==3 or i==5 or i==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"753"else"NO")

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

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

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

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

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

Solution (Python):
print(" YNEOS"[input()in'357'::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 == 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):
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):
n = int(input())
if n == 7 or n == 5 or n == 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 = input()
if x == "3" or x == "5" or x == "7":
    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 in (7,5,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):
d = int(input())
if d == 3 or d== 5 or d==7:
 print("YES")
else:
 print("NO")

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

Solution (Python):


import sys

def to_be_celebrate(n):
    if n == '3':
        return True
    if n == '5':
        return True
    if n == '7':
        return True
    return False

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

print('YES' if to_be_celebrate(X) else 'NO')

Solution (Python):
n=int(input())
if(n==5 or n==7 or n==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):
a=int(input())

if a==3 or a==5 or a==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):
a = input()
a = int(a)

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

Solution (Python):
n = input()
if (n == '3') or (n == '5') or (n == '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):
print({True:"YES",False:"NO"}[(int(input()) in [7,5,3])])

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

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

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


if __name__ == '__main__':
    main()

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

Solution (Python):
X = int(input())
if X in [7,5,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())
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):
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):
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 {7, 5, 3}:
    print("YES")
else:
    print("NO")

Solution (Python):
X= int(input())
if X == 3 or X == 7 or X == 5 : 
  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()
age_list = ['3', '5', '7']
if X in age_list:
    print('YES')
else:
    print('NO')

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

Solution (Python):

from sys import stdin

s_in = lambda: stdin.readline()[:-1]  
d_in = lambda: int(stdin.readline())  
ds_in = lambda: list(map(int, stdin.readline().split()))  

X = d_in()

if X in [3, 5, 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==3 or X==5 or X==7:
  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 == 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):
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:
    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())

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

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

Solution (Python):
def main() -> None:
    v = int(input())
    y = [7, 5, 3]
    o = 'YES' if v in y else 'NO'
    print(o)


if __name__ == '__main__':
    main()

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

Solution (Python):
a=int(raw_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):
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):
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())
print("YES" if X in [7, 5, 3] else "NO")

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

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

if num == 3or num == 5 or num == 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 [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):
print("YES" if input() in "753" else "NO")

Solution (Python):
n = int(input()) 
if (n%5 == 0 or n%3 == 0 or n%7 ==0) and n%9!=0 and n%6 !=0:
    print("YES")
else:
    print("NO")

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

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

Solution (Python):


D = int(input())

if (D == 7)or(D == 5)or(D == 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):
print('YES') if int(input()) in [3,5,7] else print('NO')

Solution (Python):
print("YES" if (input() in "357") else "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 == 7 or x == 5 or x == 3:
    print('YES')
else:
    print('NO')

Solution (Python):
judg_list = [7,5,3]
x = int(input())

if x in judg_list:
  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 == 5:
  print("YES")
elif X == 7:
    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):
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/3==1:
 print("YES")
elif x/5==1:
 print("YES")
elif x/7==1:
 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):
n=int(input())
if n==3 or n==5 or n==7:
    print("YES")
else:
    print("NO")

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

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

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

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

if (x - 3) * (x - 5) * (x - 7) == 0:
    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):
N = int(input())

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

Solution (Python):


s = input() 
X = int(s) 

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):


s = input() 
X = int(s) 

if X == 3 or X == 5 or X == 7:
    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__':
    main()

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

Solution (Python):


s = input() 
X = int(s) 

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

Solution (Python):
a = input()

cong = ['7', '5', '3']

if a in cong:
    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 in [7,5,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:
  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 == 5or X == 7:
    print("YES")
else:
    print("NO")

Solution (Python):
n = int(input())
print("YES") if n == 3 or n == 5 or n == 7  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):
print("YES") if input() in '357' 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:
    print('YES')
elif X == 5:
    print('YES')
elif X == 7:
    print('YES')
else:
    print('NO')

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

if takahashi_kun == 3:
    print('YES')
elif takahashi_kun == 5:
    print('YES')
elif takahashi_kun == 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 in [3, 5, 7]:
    print('YES')
else:
    print('NO')

Solution (Python):
num = input()
if int(num) == 3 or int(num) == 5 or int(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):
n = int(input())
if (n == 7 or n == 5 or n == 3):
    print("YES")
else:
    print("NO")

Solution (Python):
X = int(input())
answer = None
if X == 3:
    answer = True
elif X == 5:
    answer = True
elif X == 7:
    answer = True
else :
    answer = False

if answer == True:
    print("YES")
else:
    print("NO")

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

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

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

Solution (Python):
x = int(input())
print("YES" if x 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=input()

x=int(x)


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

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

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

Solution (Python):
print('YES' if input() in ['3', '5', '7'] 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 == 3 or X == 5 or X == 7:
    print('YES')
else:
    print('NO')

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

Solution (Python):
x = int(input())
l = [3,5,7]
if x in l:
    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):
n=int(input())

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

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

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

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

Solution (Python):
p = ["NO"] * 10
p[7] = p[5] = p[3] = "YES"
print(p[int(input())])

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

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

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

Solution (Python):
N = int(input())
if N in [7, 5, 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())
SichiGoSan=[3,5,7]
if X in SichiGoSan:
     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 == 3 or X == 5 or X == 7:
    print("YES")
else:
    print("NO")

Solution (Python):
yo = int(input())
if yo == 3 or yo == 5 or yo == 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 in [3, 5, 7]:print('YES')
else: print('NO')

Solution (Python):
N = int(input())
print('YES') if N == 3 or N == 5 or N == 7 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 == 3 or A == 5 or A == 7 else "NO")

Solution (Python):

x = int( input() )

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

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

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

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

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

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

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

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

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

array = [3, 5, 7]

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

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

Solution (Python):
x=input()
print(["NO","YES"][x=="3" or x=="5" or x=="7"])

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