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.



Sample input:
5


Sample output:
YES

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
x=int(input())

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
n = int(input())

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
x=input()

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
x=input()

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

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

Submission status: Accepted

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

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

main()

Submission status: Accepted

Solution code:
x = int(input())

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

Submission status: Accepted

Solution code:
X =int(input())

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

Submission status: Accepted

Solution code:
# 年齢を受け取る
a = int(input())
# 受け取った年齢を基に753判定
if a == 7 or a == 5 or a == 3:
    print("YES")
else:
    print("NO")

Submission status: Accepted

Solution code:
x = int(input())

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
x = int(input())

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import sys
input = sys.stdin.readline
X = int(input())
if X == 7 or X == 5 or X == 3 :
    print("YES")
else :
    print("NO")

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
if __name__ == '__main__':
  x = int(input())
  if (x == 3) or (x == 5) or (x == 7):
    print("YES")
  else:
    print("NO")

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
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
# MOD = 998244353


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

if ok:
    print('YES')
else:
    print('NO')

Submission status: Accepted

Solution code:
# coding: utf-8

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
X = int(input())

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

Submission status: Accepted

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

Submission status: Accepted

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


if __name__ == '__main__':
    solve()

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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


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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

if x in li753:
    ans = "YES"
else:
    ans = "NO"

print(ans)

Submission status: Accepted

Solution code:
X = int(input())

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
x = int(input()) #integer 数

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import math

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import math

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

Submission status: Accepted

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

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

else:
    print('NO')

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
n = int(input())

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

Submission status: Accepted

Solution code:
X = int( input() )
listage = [ 7, 5, 3 ]
print( [ "NO", "YES" ][ X in listage ] )

Submission status: Accepted

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

Submission status: Accepted

Solution code:
N = int(input())

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

else:
  print('NO')

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
X = int(input())
wk = (X-7)*(X-5)*(X-3)
if wk == 0:
    print("YES")
else:
    print("NO")

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
x = input()
 
print('YES' if x in '753' else 'NO')

Submission status: Accepted

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

Submission status: Accepted

Solution code:

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
X = input()

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
X=int(input())

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
x = int(input())

ages = [7, 5, 3]

print("YES" if x in ages else "NO")

Submission status: Accepted

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

Submission status: Accepted

Solution code:
k = int(input())

if 105%k== 0 and k!=1: 
  print("YES")
else:
  print("NO")

Submission status: Accepted

Solution code:
X= int(input())

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

Submission status: Accepted

Solution code:
X = int(input())

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# ABC114a
import sys
input = sys.stdin.readline
sys.setrecursionlimit(10**6)

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
##### 解けた #####

X=input()

if X in ["3","5","7"]: # 祝われる場合
    print("YES")
else: # 祝われない場合
    print("NO")

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-
import math

#入力
#S = str(input())
#N, i = map(int, input().split())
#K = int(input())
X = int(input())

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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


if __name__ == '__main__':
    main()

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
X = int(input())

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
X = int(input())

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
A = int(input())

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

Submission status: Accepted

Solution code:
#data = list(map(int,input().split()))
year = int(input())

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
x = int(input())
print(['NO', 'YES'][[7, 5, 3].count(x)])

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
X = int(input())

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# A - 753
N = int(input())

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
#!/usr/bin/env python3
import sys

YES = "YES"  # type: str
NO = "NO"  # type: str


def solve(X: int):
    if X==3 or X==5 or X==7:
        print(YES)
    else:
        print(NO)
    return


# Generated by 1.1.6 https://github.com/kyuridenamida/atcoder-tools  (tips: You use the default template now. You can remove this line by using your custom template)
def main():
    def iterate_tokens():
        for line in sys.stdin:
            for word in line.split():
                yield word
    tokens = iterate_tokens()
    X = int(next(tokens))  # type: int
    solve(X)

if __name__ == '__main__':
    main()

Submission status: Accepted

Solution code:
# 2019-11-11 16:07:35(JST)
import sys
# import collections
# import math
# from string import ascii_lowercase, ascii_uppercase, digits
# from bisect import bisect_left as bi_l, bisect_right as bi_r
# import itertools
# from functools import reduce
# import operator as op
# from scipy.misc import comb # float
# import numpy as np 

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



if __name__ == "__main__":
    main()

Submission status: Accepted

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

Submission status: Accepted

Solution code:
x = int(input())

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

  
print(ret)

Submission status: Accepted

Solution code:
X = input()

X =int(X)

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import sys
def input(): return sys.stdin.readline().strip()

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

main()

Submission status: Accepted

Solution code:
from sys import stdin


#1行に１つの数字
n = int(stdin.readline().rstrip())

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

Submission status: Accepted

Solution code:
X = int(input())
X_list = [3, 5, 7]

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

Submission status: Accepted

Solution code:
# ABC 114: A – 753
x = input()
print('YES' if x == '3' or x == '5' or x == '7' else 'NO')

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
x = int(input())

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
x = int(input())

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
X = int(input())

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

Submission status: Accepted

Solution code:
import sys
def input():
    return sys.stdin.readline()[:-1]
n=int(input())
if n==3 or n==5 or n==7:
    print("YES")
else:
    print("NO")

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import os, sys, re, math

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

Submission status: Accepted

Solution code:
import os, sys, re, math

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
print('YES' if input().strip() in '753' else 'NO')

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
x = int(input())

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

if __name__ == "__main__":
    main()

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import sys

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

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

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

Submission status: Accepted

Solution code:
X = int(input())

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

Submission status: Accepted

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

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

X = INT()

years = [3, 5, 7]

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

>>> main(6)
NO
'''


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


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

Submission status: Accepted

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


if __name__ == '__main__':
    slove()

Submission status: Accepted

Solution code:
import sys

input = sys.stdin.readline


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


if __name__ == "__main__":
    main()

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
s = int(input())

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