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

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

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

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

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

Solution (Python):

from collections import defaultdict
from collections import deque
from heapq import heappush, heappop
import sys
import math
import bisect
import random
def LI(): return list(map(int, sys.stdin.readline().split()))
def I(): return int(sys.stdin.readline())
def LS():return list(map(list, sys.stdin.readline().split()))
def S(): return list(sys.stdin.readline())[:-1]
def IR(n):
    l = [None for i in range(n)]
    for i in range(n):l[i] = I()
    return l
def LIR(n):
    l = [None for i in range(n)]
    for i in range(n):l[i] = LI()
    return l
def SR(n):
    l = [None for i in range(n)]
    for i in range(n):l[i] = S()
    return l
def LSR(n):
    l = [None for i in range(n)]
    for i in range(n):l[i] = SR()
    return l
mod = 1000000007


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


def B():
    return


def C():
    n = list(map(int,S()))
    l = len(n)
    dp = [[[0 for k in range(16)] for j in range(2)] for i in range(l+1)]
    dp[0][0][0] = 1
    for i in range(l):
        for j in range(2):
            for k in range(9):
                x = 9 if j else n[i]
                for d in range(x+1):
                    if d == 3:
                        f = 1
                    elif d == 5:
                        f = 2
                    elif d == 7:
                        f = 4
                    else:
                        if k == 0 and d == 0:
                            f = 0
                        else:
                            f = 8
                    dp[i+1][j or d < n[i]][k|f] += dp[i][j][k]
    ans = 0
    for i in range(2):
        ans += dp[l][i][7]
    print(ans)

def D():
    def factorial(n):
        if n <= 3:
            return [n]
        l = []
        i = 2
        m = n
        while i**2 <= n:
            while m%i == 0:
                l.append(i)
                m //= i
            i += 1
        if m != 1:
            l.append(m)
        return l

    n = I()
    d = defaultdict(int)
    for i in range(2,n+1):
        l = factorial(i)
        for j in l:
            d[j] += 1
    a3 = 0
    a5 = 0
    a15 = 0
    a25 = 0
    a75 = 0
    for i in d.keys():
        if d[i] >= 74:
            a75 += 1
        if d[i] >= 24:
            a25 += 1
        if d[i] >= 14:
            a15 += 1
        if d[i] >= 4:
            a5 += 1
        if d[i] >= 2:
            a3 += 1
    ans = a75+(a3-1)*a25+(a5-1)*a15+(a3-2)*a5*(a5-1)//2
    print(ans)

def E():
    return


def F():
    return


def G():
    return


def H():
    return


if __name__ == "__main__":
    A()

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

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

celebration = [7, 5, 3]

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

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

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

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

Solution (Python):


x = int(input())

if x == 7 or x == 5 or x == 3:
    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):


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

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

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

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

def main():
    if X in {7, 5, 3}:
        return 'YES'
    else:
        return 'NO'

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

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

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

Solution (Python):
x = int(input())
ans = "NO"
if x in [7, 5, 3]:
  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):
from sys import exit

N = int(input())





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

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

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

Solution (Python):
X = input()

try:
  X = int(X)
except:
  X = -1
  
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):
lis = [3,5,7]
n = int(input())
if n in lis:
  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())
L = [3, 5, 7]
if X in L:
    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):
a=int(input())
if a==7 or a==5 or a==3:
    print('YES')
else:
    print('NO')

Solution (Python):

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

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

Solution (Python):

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

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

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

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

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

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

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

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

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

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

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

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

else:
  print("NO")

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

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

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

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

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

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(['NO', 'YES'][N in [3, 5, 7]])

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

Solution (Python):
a=input();print("NO") if a!="5" and a!="3" and a!="7" else print("YES")

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

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

Solution (Python):

import sys

YES = "YES"  
NO = "NO"  


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

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

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

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

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

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

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

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

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

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

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

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

Solution (Python):
X, = (int(x) for x in input().split())

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

Solution (Python):
def q753(X: int) -> bool:
    return X == 7 or X == 5 or X == 3


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

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

else:
	print('NO')

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

ans = X == 3 or X == 5 or X == 7

print("YES" if ans else "NO")
print()

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

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

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

Solution (Python):
ri = lambda: int(input())
rl = lambda: list(map(int,input().split()))
rr = lambda N: [ri() for _ in range(N)]
INF = 10**18

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

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

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

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

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

if yo == 7 or yo == 5 or yo == 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):
yr=int(input())
if yr 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=input()
if N=="3" or N=="5" or N=="7":
  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 = int(input())

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

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

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

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

Solution (Python):
l=[7,5,3]

print('YES' if int(input()) in l else 'NO')

Solution (Python):
print("NYOE S"[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):
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 == 7:
    print("YES")
elif x == 5:
    print("YES")
elif x == 3:
    print("YES")
else:
    print("NO")

Solution (Python):
def solve(string):
    return "YES" if string in "753" else "NO"


if __name__ == '__main__':
    print(solve(input()))

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

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

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

Solution (Python):

import math
import sys

def solve(i):
  if i in [3, 5, 7]:
    return "YES"
  else:
    return "NO"

if __name__ == "__main__":
    x = int(sys.stdin.readline().rstrip())
    print(solve(x))

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

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

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

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

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

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

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

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

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

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

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

print('YES' if X 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):
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):
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):
import math, string, itertools, fractions, heapq, collections, re,  array, bisect, sys, random, time, copy, functools


sys.setrecursionlimit(10**7)
inf = 10 ** 20
eps = 1.0 / 10**10
mod = 10**9+7
dd = [(-1, 0), (0, 1), (1, 0), (0, -1)]
ddn = [(-1, 0), (-1, 1), (0, 1), (1, 1), (1, 0), (1, -1), (0, -1), (-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 pf(s): return print(s, flush=True)


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

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

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

Solution (Python):



n = int(input())
l = (3, 5, 7)
res = n in l

print("YES" if res else "NO")

Solution (Python):

def hantei(a):
    if a == 3 or a == 5 or a == 7:
        return "YES"
    else:
        return "NO"

x = int(input())

print(hantei(x))

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

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

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

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

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

Solution (Python):
def f(X):
        return 'YES' if X in (7, 5, 3) else 'NO'


print(f(int(input())))

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 3 <= x <= 7 and x % 2 != 0:
  print("YES")
else:
  print("NO")

Solution (Python):


X = int(input())

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

Solution (Python):
n, = map(int,input().split())

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

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

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

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

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

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

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

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

Solution (Python):
s={7,5,3}
s.discard(int(input()))
if len(s) == 2:
    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 == 5 or X == 3 or X == 7:
    print("YES")
else:
    print("NO")

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

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

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

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

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

Solution (Python):
X = input()

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

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

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

Solution (Python):
import sys

def main():
  input = sys.stdin.readline
  n = int(input())
  fes = [7, 5, 3]
  if n in fes:
    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):
n = int(input())
if n==7 or n==5 or n==3:
	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):



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

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

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

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

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

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

s = (3,5,7)

if X in s:
    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().rstrip())
b = X in [7, 5, 3]
print('YES' if b 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==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):
if __name__ == '__main__':
    x=int(input())
    if x==3 or x==5 or x==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==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):
takahashi = int(input())

if takahashi == 3 or takahashi == 5 or takahashi == 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")