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())
print("YES" if X==3 or X==5 or X==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 'NO')

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

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

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

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

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

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

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



if __name__ == '__main__':
    main()

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

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

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

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

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



def input():
    return sys.stdin.readline().rstrip()


def main():

    X =int(input())
    if X==1:
        print("NO")
        exit()
    if 105 % X ==0:
        print("YES")
    else:
        print("NO")





if __name__ == "__main__":
    main()

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

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

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

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

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

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

Solution (Python):
N = str(input())
N_List = ["3","5","7"]
if N in N_List:
    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):
d = int(input())

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

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

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

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

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

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

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

Solution (Python):
import math,string,itertools,fractions,heapq,collections,re,array,bisect,sys,random,time,copy,functools
from collections import deque

sys.setrecursionlimit(10**7)
inf = 10**20
mod = 10**9 + 7

DR = [1, -1, 0, 0]
DC = [0, 0, 1, -1]

def LI(): return [int(x) for x in sys.stdin.readline().split()]
def LI_(): return [int(x)-1 for x in sys.stdin.readline().split()]
def LF(): return [float(x) for x in sys.stdin.readline().split()]
def LS(): return sys.stdin.readline().split()
def I(): return int(sys.stdin.readline())
def F(): return float(sys.stdin.readline())
def S(): return input()
     
def main():
    X = I()
    if X in [3,5,7]:
        print("YES")
    else:
        print("NO")


main()

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

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

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

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

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

print(ans)

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):
print('YES' if input() in '357' else 'NO')

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

if '__main__' == __name__:
    resolve()

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

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

if  X < 9 and X > 1 and X % 2 == 1:
    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 = 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 == 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())
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):
n=int(input())
if n 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):
y=int(input())
if y==7 or y==5 or y==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 [3,5,7]:
    print('YES')
else:
    print('NO')

Solution (Python):
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


if __name__ == '__main__':
    main()

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

Solution (Python):

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

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

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

Solution (Python):
if __name__ == '__main__':

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

 

 
import sys
from fractions import gcd
import math
from math import ceil,floor
import collections
from collections import Counter
import itertools
import copy
 

 










 
X=int(input())

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

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

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

if __name__ == '__main__':
    main()

Solution (Python):
d=int(input())
print("YES" if d==3 or d==5 or d==7 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
def I(): return int(sys.stdin.readline().rstrip())

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

Solution (Python):
print('NYOE S'[input() in [*'753']::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 in [7,5,3]:
  print('YES')
else:
  print('NO')

Solution (Python):
import sys
read = sys.stdin.buffer.read
readline = sys.stdin.buffer.readline
readlines = sys.stdin.buffer.readlines

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

Solution (Python):
X = input()

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

Solution (Python):
x=input()
if x in "357":
    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 == 3 or n == 5 or n == 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())

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

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

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

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

Solution (Python):
import bisect, collections, copy, heapq, itertools, math, string, sys
input = lambda: sys.stdin.readline().rstrip() 
sys.setrecursionlimit(10**7)
INF = float('inf')
def I(): return int(input())
def F(): return float(input())
def SS(): return input()
def LI(): return [int(x) for x in input().split()]
def LI_(): return [int(x)-1 for x in input().split()]
def LF(): return [float(x) for x in input().split()]
def LSS(): return input().split()

def resolve():
    X = I()

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

if __name__ == '__main__':
    resolve()

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

Solution (Python):








































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



def get_input_lines(lines_count):
    lines = list()
    for _ in range(lines_count):
        lines.append(input())
    return lines



def get_testdata(pattern):
    if pattern == 1:
        lines_input = ['5']
        lines_export = ['YES']
    if pattern == 2:
        lines_input = ['6']
        lines_export = ['NO']
    return lines_input, lines_export



def get_mode():
    import sys
    args = sys.argv
    if len(args) == 1:
        mode = 0
    else:
        mode = int(args[1])
    return mode



def main():
    import time
    started = time.time()
    mode = get_mode()
    if mode == 0:
        lines_input = get_input_lines(1)
    else:
        lines_input, lines_export = get_testdata(mode)

    lines_result = calculation(lines_input)

    for line_result in lines_result:
        print(line_result)

    
    
    
    
    
    
    
    
    
    
    



if __name__ == '__main__':
    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):
X=input()
print("YES" if X in "753" else "NO")

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

Solution (Python):
X = int(input())
if X in (7,5,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):
import sys
input = lambda: sys.stdin.readline().rstrip()

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

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

Solution (Python):
def main():
    x = int(input())
    ans = "NO"
    if x == 7 or x == 5 or x == 3:
        ans = "YES"

    print(ans)


if __name__ == "__main__":
    main()

Solution (Python):
import sys
sys.setrecursionlimit(10**8)
def ii(): return int(sys.stdin.readline())
def mi(): return map(int, sys.stdin.readline().split())
def li(): return list(map(int, sys.stdin.readline().split()))
def li2(N): return [list(map(int, sys.stdin.readline().split())) for _ in range(N)]
def dp2(ini, i, j): return [[ini]*i for _ in range(j)]

from collections import defaultdict 


'''
def f(n):
    if n % 2:
        return 3 * n + 1
    else:
        return n // 2

s = ii()
d = defaultdict(int)
d[s] = 1

while True:
    if d[f(x)] == 1:
        print()
    d[f(x)] += 1
    x = f(x)
'''

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

Solution (Python):
import sys
sys.setrecursionlimit(10**7)
input = sys.stdin.readline

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

Solution (Python):
import sys
sys.setrecursionlimit(10**7)
input = sys.stdin.readline

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

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

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

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

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

Solution (Python):
import sys
import math
import itertools
import bisect
from copy import copy
from collections import deque,Counter
from decimal import Decimal
import functools
def s(): return input()
def k(): return int(input())
def S(): return input().split()
def I(): return map(int,input().split())
def X(): return list(input())
def L(): return list(input().split())
def l(): return list(map(int,input().split()))
def lcm(a,b): return a*b//math.gcd(a,b)
sys.setrecursionlimit(10 ** 9)
mod = 10**9+7
cnt = 1
ans = 0
inf = float("inf")

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

Solution (Python):
x = int(input())
a = False
if x == 7 or x == 5 or x == 3:
  a = True
  
print('YES' if a 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):
import sys
X = int(input())
if not ( 1 <= X <= 9 ): sys.exit()

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

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

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

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

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

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

Solution (Python):
import sys

rr = lambda: sys.stdin.readline().rstrip()

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

Solution (Python):
import sys

ri = lambda: int(sys.stdin.readline())

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

Solution (Python):
import sys

ri = lambda: int(sys.stdin.readline())

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

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

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

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

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

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

Solution (Python):


import math

import itertools
from collections import deque
from collections import Counter




n=int(input())
if n==7 or n==5 or n==3:
    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):
def ya(boo):
  if boo:
    print("Yes")
  else:
    print("No")
def yay(boo):
  if boo:
    print("YES")
  else:
    print("NO")
yay(input() in "753")

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

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

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

Solution (Python):
check = [7,5,3]
x = int(input())
print("YES" if x in check 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 == 1:
    print("NO")
elif 105 % N == 0:
    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=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 "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 = input()
ans = 'NO'
if X in ['3','5','7']:
  ans = 'YES'
print(ans)

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

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

Y = set([7,5,3])

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

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

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

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

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

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

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

Solution (Python):


x = int(input())
g = [7, 5, 3]

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

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


if __name__ == '__main__':
    solve()

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

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

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

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

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

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

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

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

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