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

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

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

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

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

Solution (Python):

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

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 == 7 or a == 5 or a == 3:
    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):
from sys import stdin

a = stdin.readline().rstrip()
a = int(a)
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):
print(["NO", "YES"][[7, 5, 3].count(int(input()))])

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

sft = [3,5,7]

if X in sft:
  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())
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==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):

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

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

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

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

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

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

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

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

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

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



import sys


sys.setrecursionlimit(10 ** 6)

read_single_int = lambda: int(sys.stdin.readline().strip())


def solution(x: int):
    if x == 3 or x == 5 or x == 7:
        return 'YES'
    return 'NO'


def main():
    x = read_single_int()
    print(solution(x))


if __name__ == '__main__':
    main()

Solution (Python):
import sys
 
def main():
    x = int(sys.stdin.readline().strip())
    
    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:
  print('YES')
elif x == 5:
  print('YES')
elif x == 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 == 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):
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):
age = int(input())

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

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

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

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

Solution (Python):
from statistics import mean, median,variance,stdev
import sys

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


print(abc114_a())

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

Solution (Python):

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

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

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

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

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

print(["NO", "YES"][N == 3 or N == 7 or N == 5])

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

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

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

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

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

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

else:
    print('NO')

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

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

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

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

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

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

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

Solution (Python):
from sys import stdin
a = [7,3,5]
n = int(stdin.readline())
ans = 'NO'
if n in a:
 ans = "YES"
print ans

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

Solution (Python):


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

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

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

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

Solution (Python):


X = int(input())
def f(n):
  if (n == 3)or(n == 5)or(n == 7):
    return "YES"
  else:
    return "NO"
    
print("{}".format(f(X)))

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

Solution (Python):
x = abs(5-int(input()))

ans = 'NO'
if x<=2 and x%2==0:
    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):

inp = input()

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

Solution (Python):
X = input()

x = int(X)

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

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

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

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

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

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

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

Solution (Python):
print(['NO','YES'][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(['NO','YES'][input()in'357'])

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

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

Solution (Python):
from sys import stdin
age=int(stdin.readline().rstrip())
if age==7:
  print("YES")
elif age==5:
  print("YES")
elif age==3:
  print("YES")
else:
  print("NO")

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

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

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

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

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

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

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

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

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


if __name__ == '__main__':
    main()

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

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

Solution (Python):
s = input()
ss = ["3", "5", "7"]

if s in ss:
  print("YES")
else:
  print("NO")

Solution (Python):





def check_753(s):

	if(s == '7' or s=='5' or s=='3'):
		answer = "YES"
	else:
		answer = "NO"
	return answer


if __name__ == '__main__':
	problemStr=input()
	answerStr=check_753(problemStr)
	print(answerStr)

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

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

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


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

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

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

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

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

Solution (Python):




"""








"""


if __name__ == '__main__':
    i = int(input())
    if [3,5,7].count(i) >= 1:
        print('YES')
    else:
        print('NO')

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

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

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

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

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

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

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

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

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


print(ans)

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

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

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

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

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

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

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

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

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

Solution (Python):

a = int(input())

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

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

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

Solution (Python):


if __name__ == "__main__":
    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):
q = input()

if q == '7' or  q == '5' or q == '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):
s=input()
if s=='7'or s=='5'or s=="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 input() in "753":
    print("YES")
else:
    print("NO")

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

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

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

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


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

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

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

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

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

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

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

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

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

if(X in x):
    print('YES')

else:
    print('NO')

Solution (Python):



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

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

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

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

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

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

Solution (Python):
N = input()

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

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

main()

Solution (Python):
import sys

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

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

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

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

Solution (Python):




i = int(input())
if i > 7:
  print("NO")
elif i % 7 == 0:
  print("YES")
elif i > 5:
  print("NO")
elif i % 5 == 0:
  print("YES")
elif i % 3 == 0:
  print("YES")
else:
  print("NO")

Solution (Python):

"""
Created on Sun Dec  2 20:06:38 2018

@author: Owner
"""

import collections
import scipy.misc
import sys
import numpy as np
import math
from operator import itemgetter

def prime_decomposition(n):
  i = 2
  table = []
  while i * i <= n:
    while n % i == 0:
      n /= i
      table.append(int(i))
    i += 1
  if n > 1:
    table.append(int(n))
  return table   

"""
N, X = map(int, input().split())

x = [0]*N
x[:] = map(int, input().split())

P = [0]*M
Y = [0]*M
for m in range(M):
    P[m], Y[m] = map(int, input().split())
"""

X = int(input())

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

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

if __name__ == '__main__':
    main()

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


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

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

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

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

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

Solution (Python):

x = int(input())

if (x / 7 <= 1 and x % 7 == 0)  or (x / 5<= 1 and x % 5 == 0) or (x / 3 <= 1 and x % 3 == 0):
    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-5)*(X-3)*(X-7)==0:
    print("YES")
else:
    print("NO")

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

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

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

from sys import stdin

def solve():
    x = int(stdin.readline().strip())
    if x==3 or x==5 or x==7:
        print("YES")
    else:
        print("NO")
    pass

solve()

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

Solution (Python):
from sys import stdin
age=int(stdin.readline().rstrip())
if age==7:
  print("YES")
elif age==5:
  print("YES")
elif age==3:
  print("YES")
else:
  print("NO")

Solution (Python):
a=input("")
a=int(a)
if a==3 :
    print("YES")
elif a==5 :
    print("YES")
elif 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 = 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):
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):
from sys import stdin

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

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

input = lambda: stdin.readline()
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):


x = int(input())

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

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

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

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

Solution (Python):
N=int(input().strip())

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

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