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

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


if __name__ == '__main__':
    main()

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

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

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

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

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

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

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

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

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

Solution (Python):
import sys
def input(): return sys.stdin.readline().rstrip()

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

if __name__ == '__main__':
    main()

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

Solution (Python):
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())
anniversary = [7,5,3]

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

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

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

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

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

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

Solution (Python):
import sys
 
stdin = sys.stdin
 
ni = lambda: int(ns())
nin = lambda x: [ni() for _ in range(x)]
na = lambda: list(map(int, stdin.readline().split()))
nan = lambda x: [na() for _ in range(x)]
ns = lambda: stdin.readline().rstrip()
nas = lambda: stdin.readline().split()

x = ni()
flag = False
for i in range(3, 8, 2):
    if x == i:
        flag = True

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Solution (Python):
x = int(input())
if x == 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%2==1)and(not(X==1))and(not(X==9)):
    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):
N = int(input())

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

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

Solution (Python):

import sys
read = sys.stdin.buffer.read
readline = sys.stdin.buffer.readline
readlines = sys.stdin.buffer.readlines
s = int(input())
if s 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):
n = input()
print("YES" if n in "753" else "NO")

Solution (Python):
def main():
    X = int(input())
    if 105 % X == 0 and X > 1:
        print("YES")
    else:
        print("NO")


if __name__ == '__main__':
    main()

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

print( "YES" if X%2 == 1 and X != 1 and X != 9 else "NO")

Solution (Python):
import sys
import math
import itertools

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

Solution (Python):
import sys

INPUT = lambda: sys.stdin.readline().rstrip()
INT = lambda: int(INPUT())

sys.setrecursionlimit(10 ** 9)


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


if __name__ == '__main__':
    main()

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

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

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

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

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

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

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

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

Solution (Python):
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 in "753":
  print("YES")
else:
  print("NO")

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

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

Solution (Python):
N = input()

b = N in ["3","5","7"]

if b:
    print("YES")
else:
    print("NO")

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

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

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

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

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

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

Solution (Python):
"""
author : halo2halo
date : 16, Jan, 2020
"""

import sys


read = sys.stdin.buffer.read
readline = sys.stdin.buffer.readline
readlines = sys.stdin.buffer.readlines
sys.setrecursionlimit(10 ** 7)

N = int(readline())

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

Solution (Python):
x = input()
if x in "753":
  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):
lst = [7,5,3]
if int(input()) in lst:
  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):
import math
import queue
import bisect
import heapq
import time
import itertools

mod = int(1e9+7)

def swap(a,b):
    return (b,a)

def my_round(a,dig=0):
    p = 10 ** dig
    return (a * p * 2 + 1) // 2 / p

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

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

def divisors(a): 
    divisors = []
    for i in range(1,int(a**0.5)+1):
        if a%i==0:
            divisors.append(i)
            if i!=a//i:
                divisors.append(a//i)
    return divisors

def is_prime(a): 
    if a<2:
        return False
    elif a==2:
        return True
    elif a%2==0:
        return False
    sqrt_num = int(a**0.5)
    for i in range(3,sqrt_num+1,2):
        if a%i==0:
            return False
    return True

def prime_num(a): 
    pn = [2]
    for i in range(3,int(a**0.5),2):
        prime = True
        for j in pn:
            if i%j==0:
                prime = False
                break
        if prime:
            pn.append(i)
    return pn

def prime_fact(a): 
    sqrt = math.sqrt(a)
    res = []
    i = 2
    if is_prime(a):
        res.append(a)
    else:
        while a!=1:
            while a%i==0:
                res.append(i)
                a //= i
            i += 1
    return res

def main():
    x = int(input())
    if x == 7 or x == 5 or x == 3:
        print('YES')
    else:
        print('NO')
    return

if __name__=='__main__':
    main()

Solution (Python):
import sys
sys.setrecursionlimit(10**9)
INF=10**18
MOD=10**9+7
def input(): return sys.stdin.readline().rstrip()

def main():
    N=int(input())
    print('YES' if N==5 or N==7 or N==3 else 'NO')

if __name__ == '__main__':
    main()

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

if x in [3,5,7]:
  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')
 
main()

Solution (Python):
def main():
    from sys import stdin
    r = stdin.readline()[:-1]
    

    if r in ('3','5','7'):
        print('YES')
    else:
        print('NO')
   
if __name__ == '__main__':
    main()

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

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

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

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

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

cand = [7, 5, 3]

x = int(sys.stdin.readline().rstrip())

def main():
    return 'YES' if x in cand else 'NO'

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

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

Solution (Python):
x=input()

list=["3", "5", "7"]

if x in list:
    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')

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

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

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

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

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

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

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

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

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

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

Solution (Python):
import bisect
import cmath
import heapq
import itertools
import math
import operator
import os
import re
import string
import sys
from collections import Counter, deque, defaultdict
from copy import deepcopy
from decimal import Decimal
from fractions import gcd
from functools import lru_cache, reduce
from operator import itemgetter, mul, add, xor

import numpy as np

if os.getenv("LOCAL"):
    sys.stdin = open("_in.txt", "r")

sys.setrecursionlimit(10 ** 9)
INF = float("inf")
IINF = 10 ** 18
MOD = 10 ** 9 + 7



x = int(sys.stdin.buffer.readline())
ok = x in [7, 5, 3]

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

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

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

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

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

Solution (Python):
INT = lambda: int(input())
INTM = lambda: map(int,input().split())
STRM = lambda: map(str,input().split())
STR = lambda: str(input())
LIST = lambda: list(map(int,input().split()))
LISTS = lambda: list(map(str,input().split()))
def do():
    x=INT()
    if x==3 or x==5 or x==7:
        print('YES')
    else:
        print('NO')
if __name__ == '__main__':
    do()

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


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

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

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

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

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

Solution (Python):
import math

x = input()
print("YES" if x in "357" else "NO")

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

Solution (Python):
import math

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

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

for i in range(3):
    if X == x[i]:
        print('YES')
        break

else:
    print('NO')

Solution (Python):
x = int(input())
ans ="NO"
if 2<x<8 and x%2==1:
    ans ="YES"
print(ans)

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

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

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

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

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

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

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

Solution (Python):

ii = lambda : int(input())
mi = lambda : map(int,input().split())
li = lambda : list(map(int,input().split()))


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


main()

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

Solution (Python):
print("YES" if "357".find(input()) >= 0 else "NO")

Solution (Python):
X = input()

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

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

Solution (Python):
def examA():
    X = I()
    if X==3 or X==5 or X==7:
        ans = "YES"
    else:
        ans = "NO"
    print(ans)
    return



import sys,copy,bisect,itertools,heapq,math
from heapq import heappop,heappush,heapify
from collections import Counter,defaultdict,deque
def I(): return int(sys.stdin.readline())
def LI(): return list(map(int,sys.stdin.readline().split()))
def LSI(): return list(map(str,sys.stdin.readline().split()))
def LS(): return sys.stdin.readline().split()
def SI(): return sys.stdin.readline().strip()
mod = 10**9 + 7
inf = float('inf')

if __name__ == '__main__':
    examA()

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

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

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

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

Solution (Python):
a=int(input())
b=3
c="";
for num in range(3):
    if(a==b):
        c="YES"
        break
    if(a!=b):
         c="NO"
    b+=2
print(c)

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

ages = [7, 5, 3]

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

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

if 105%k== 0 and k!=1: 
  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 in (3, 5, 7):
    print("YES")
else:
    print("NO")

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

Solution (Python):

import sys
input = sys.stdin.readline
sys.setrecursionlimit(10**6)

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

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

Solution (Python):


X=input()

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

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

    print(ans)


if __name__ == '__main__':
    main()

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

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





X = int(input())

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

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

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

Solution (Python):
from heapq import heappush, heappop, heapify
from collections import deque, defaultdict, Counter
import itertools
from itertools import permutations, combinations
import sys
import bisect
import string
import math
import time

input = sys.stdin.readline


sys.setrecursionlimit(2147483647)


def I(): return int(input())


def MI(): return map(int, input().split())


def LI(): return [int(i) for i in input().split()]


def LI_(): return [int(i)-1 for i in input().split()]


def StoI(): return [ord(i)-97 for i in input()]


def ItoS(nn): return chr(nn+97)


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


def show(*inp, end='\n'):
    if show_flg:
        print(*inp, end=end)


YN = ['Yes', 'No']
MOD = 10**9+7
inf = float('inf')
l_alp = string.ascii_lowercase
u_alp = string.ascii_uppercase
ts = time.time()
sys.setrecursionlimit(10**6)


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

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


if __name__ == '__main__':
    main()

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

year = int(input())

if year==3 or year==5 or year==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())
print(['NO', 'YES'][[7, 5, 3].count(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())
list = [3,5,7]
if x in list :
    print("YES")
else :
    print("NO")

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