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

Solution (Python):

import sys

YES = "YES"  
NO = "NO"  


def solve(X: int):
    if X==3 or X==5 or X==7:
        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):
x = int(input())

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

Solution (Python):

import sys










celebratable = [7, 5, 3]
def main():
    x = int(sys.stdin.readline().rstrip())
    print('YES' if x in celebratable else 'NO')
    



if __name__ == "__main__":
    main()

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:
  ret="YES"
else:
  ret="NO"

  
print(ret)

Solution (Python):
X = input()

X =int(X)

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

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

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):
import sys
def input(): return sys.stdin.readline().strip()

def main():
    x=int(input())
    if x in {3,5,7}:
        print('YES')
    else:
        print('NO')

main()

Solution (Python):
from sys import stdin



n = int(stdin.readline().rstrip())

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())
X_list = [3, 5, 7]

if X in X_list:
  print('YES')
else:
  print('NO')

Solution (Python):

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

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

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

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

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

Solution (Python):
a = [3,5,7]
if int(input()) in a:
	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):
import sys
def input():
    return sys.stdin.readline()[:-1]
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 == 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 == 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):
import os, sys, re, math

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

Solution (Python):
import os, sys, re, math

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

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

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

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

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

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

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

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

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

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

Solution (Python):
X = int(input())
if abs(5-X) == 0 or abs(5-X) == 2:
    print("YES")
else:
    print("NO")

Solution (Python):
import sys


		
def main():
	a = int(input())
	ret = 'YES' if ii(a) else 'NO'
	print(ret)
	
def ii(val):
	return val in [7,5,3]
	
	

isTest=False

def pa(v):
	if isTest:
		print(v)

if __name__ == "__main__":
	if sys.platform =='ios':
		sys.stdin=open('inputFile.txt')
		isTest=True
	else:
		pass
		
			
	ret = main()
	if ret is not None:
		print(ret)

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

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

Solution (Python):
import sys, re
from collections import deque, defaultdict, Counter
from math import ceil, sqrt, hypot, factorial, pi, sin, cos, radians
from itertools import permutations, combinations, product
from operator import itemgetter, mul
from copy import deepcopy
from string import ascii_lowercase, ascii_uppercase, digits
from fractions import gcd
from bisect import bisect

def input(): return sys.stdin.readline().strip()
def INT(): return int(input())
def MAP(): return map(int, input().split())
def LIST(): return list(map(int, input().split()))
sys.setrecursionlimit(10 ** 9)
INF = float('inf')
mod = 10 ** 9 + 7

X = INT()

years = [3, 5, 7]

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

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

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

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

Solution (Python):
'''
>>> main(5)
YES

>>> main(6)
NO
'''


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


if __name__ == '__main__':
    main(int(input()))

Solution (Python):
def slove():
    import sys
    input = sys.stdin.readline
    d = [7, 5, 3]
    x = int(input().rstrip('\n'))
    print("YES" if x in d else "NO")


if __name__ == '__main__':
    slove()

Solution (Python):
import sys

input = sys.stdin.readline


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


if __name__ == "__main__":
    main()

Solution (Python):
X = int(input())
T = (3,5,7)
if X 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):
x = input()
print("YES" if x in '753' 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):
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):
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):
s = int(input())

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

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

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

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

Solution (Python):


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

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

X = input()
list_753 = ["3", "5", "7"]
if (X in list_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:
  print('YES')
elif x == 5:
  print('YES')
elif 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 == 5 or x == 7 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 "753"::2])

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 ['3', '5', '7']:
    print("YES")
else:
    print("NO")

Solution (Python):
x = input()
print("YES" if x 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):
accepted = [3, 5, 7]
x = int(input())

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

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

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

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

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

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

Solution (Python):
def MAP(): return list(map(int,input().split()))
def INT(): return int(input())
def FLOAT(): return float(input())
MOD = 10**9+7

l = [3,5,7]
if INT() 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 = input()

print('YES' if X in '753' else 'NO')

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

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

Solution (Python):
import sys

if sys.platform =='ios':
    sys.stdin=open('input_file.txt')
    

X=input()

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

Solution (Python):
x = int(raw_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 = 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 in (7,5,3):
    print('YES')
else:
    print('NO')

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

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):
n=input()
n=int(n)

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

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

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

Solution (Python):

y=int(input())


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

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

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

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

if x in list:
    print('YES')
else:
    print('NO')

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

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

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

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

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

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

print(ans)

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 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 in { 7, 5, 3 }:
  print("YES")
else:
  print("NO")

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

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=int(input())
print('YES' if X==7 or X==5 or X==3 else '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'753'::2])

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

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

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

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

else:
    print('NO')

Solution (Python):
z=int(input())
print("YES" if z==7 or z==5 or z==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 == 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('YNEOS'[x not in [3,5,7]::2])

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

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

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

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

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

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

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

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

Solution (Python):
import sys
from collections import deque
stdin = sys.stdin

ni = lambda: int(ns())
na = lambda: list(map(int, stdin.readline().split()))
ns = lambda: stdin.readline().rstrip()  

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

Solution (Python):


x = int(input())
Celebrated = [3,5,7]
if x in Celebrated:
    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 '753' 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):

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

Solution (Python):
if input() in "357":
  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):
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())
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):
def main():
    X = int(input())

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


main()

Solution (Python):
x = int(input())
if 1 <= x <= 9:
    if x == 3 or x == 5 or x == 7:
        print('YES')
    else:
        print('NO')
else:
    print('hoge!')

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

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

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

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

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

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

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

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

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

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

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

if __name__ == '__main__':
    print(main())

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

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

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

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

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

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

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

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 == 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())

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

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

Solution (Python):
def solve():
    s = int(input())
    yes = [7, 5, 3]
    return "YES" if s in yes else "NO"


if __name__ == "__main__":
    print(solve())

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):
a = int(input())

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

Solution (Python):
N = int(input())
list = [3,5,7]

if N in list:
  print("YES")
else:
  print("NO")

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

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