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: Wrong Answer

Solution code:
import itertools 
N = int(input())
stn = str(N)
lstn = len(stn)

seq = ['7','5','3']

r = []
for k in range(3,lstn+1):
    a = list(itertools.combinations_with_replacement(seq,k))
    b = [i for i in a if ('3' in i )&('5'in i)&('7'in i)]
    for j in b:
        r += list(itertools.permutations(j))

n = sorted(set([int(''.join(list(i))) for i in r]))

print(len([i for i in n if i<=N]))

Submission status: Wrong Answer

Solution code:
cnt = 0
n = 357
l = int(input())+1
while n<l:
    #print(n)
    s = str(n)

    ok = False
    for i in "0124689":
        if i in s:
            ok = True
            break

    if ok:
        #print(s)
        if s[0] == '1':
            n += 2*(10**(len(s)-1))
        elif s[0] == '4' or s[0] == '6':
            n += 10**(len(s)-1)
        else:
            n+=2
        continue
        
    if '3' in s and '5' in s and '7' in s:
        #print(s)
        cnt += 1
        
    n+=2
print(cnt)

Submission status: Wrong Answer

Solution code:
X = input()

if X == 3 or X == 5 or X == 7:
	print('Yes')
else :
	print('No')

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
n = int(input())
array = []
for i in range(n+1):
    if str(i)in "7":
        if str(i) in "5":
            if str(i) in "3":
                if (str(i).count("3") + str(i).count("5") + str(i).count("7")) == len(str(i)):
                    array.append(i)
print(len(array))

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

else:
    print("NO")

Submission status: Wrong Answer

Solution code:
N = int(input())
if 105 % N == 0:
  print("YES")
else:
  print("NO")

Submission status: Wrong Answer

Solution code:
n = raw_input().split()[0]
if n == 3:
    print "YES"
elif n==5:
    print "YES"
elif n==7:
    print "YES"
else:
    print "NO"

Submission status: Wrong Answer

Solution code:
n = raw_input().split()[0]
if n == 3:
    print "Yes"
elif n==5:
    print "Yes"
elif n==7:
    print "Yes"
else:
    print "No"

Submission status: Wrong Answer

Solution code:
X = int(input())

if  X == 3 or X == 5 or X == 7:
    print("yes")
else:
    print("no")

Submission status: Wrong Answer

Solution code:
x = input()
 
if x == 7:
    print('YES')
if x == 5:
    print('YES')
if x == 3:
    print('YES')
if x == 1 or 2 or 4 or 6 or 8 or 9:
    print("NO")

Submission status: Wrong Answer

Solution code:
X = int(input())

if  X == 3 or X ==5 or X ==7:
    print("yes")
else:
    print("no")

Submission status: Wrong Answer

Solution code:
x = input()
 
if x == 7:
    print('YES')

elif x == 5:
    print('YES')

elif x == 3:
    print('YES')

else:
    print('NO')

Submission status: Wrong Answer

Solution code:
x = input()

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

Submission status: Wrong Answer

Solution code:
def number(X):
    if int(X) == 7 or int(X) == 5 or int(X) == 3 and 1 < X < 9:
        print("YES")
    else:
        print("NO")

Submission status: Wrong Answer

Solution code:
x = input()

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

Submission status: Wrong Answer

Solution code:
S = list(map(int, input()))
n_len = len(S)

diff_min = 1000
for i in range(n_len-2):
    diff = abs(S[i] * 100 + S[i+1] * 10 + S[i+2] - 753)
    if diff_min > diff:
        diff_min = diff
print(diff_min)

Submission status: Wrong Answer

Solution code:
x = int(input())

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
q = input('>')

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

Submission status: Wrong Answer

Solution code:
if input() in "753":
    print("Yes")
else:
    print("No")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
X=int(raw_input())

if (X%3 == 0 and X!=9) or (X%5 == 0) or (X%7 == 0):
    print 'YES'
else:
    print 'NO'

Submission status: Wrong Answer

Solution code:
# -*- coding: utf-8 -*-
a = int(input())

if a == 7 or a == 5 or a == 3:
    print("Yes")
else:
    print("no")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
def number(X):
    if X == 7 or X == 5 or X == 3:
        return "YES"
    else:
        return "NO"

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

print(N)

Submission status: Wrong Answer

Solution code:
#coding:utf-8

S = input()

minimal_value = 10000
for i in range(len(S) - 2):
    candidate = int(S[i:i + 3])
    minimal_value = min(abs(753 - candidate), minimal_value)

print(minimal_value)

Submission status: Wrong Answer

Solution code:
age=input()

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

Submission status: Wrong Answer

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

print(N)

Submission status: Wrong Answer

Solution code:
N = int(input())

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
n = int(input())
ans = "No"
if n == 3 or n == 5 or n == 7:
    ans = "Yes"
print(ans)

Submission status: Wrong Answer

Solution code:
#JMD
#Nagendra Jha-4096

 
import sys
import math

#import fractions
#import numpy
 
###File Operations###
fileoperation=0
if(fileoperation):
    orig_stdout = sys.stdout
    orig_stdin = sys.stdin
    inputfile = open('W:/Competitive Programming/input.txt', 'r')
    outputfile = open('W:/Competitive Programming/output.txt', 'w')
    sys.stdin = inputfile
    sys.stdout = outputfile

###Defines...###
mod=1000000007
 
###FUF's...###
def nospace(l):
    ans=''.join(str(i) for i in l)
    return ans
 
 
 
##### Main ####
s=str(input())
l=len(s)

ans=100000000000
for i in range(l-2):
    k=""
    for j in range(3):
        k+=s[i+j]
    d=int(k)
    ans=min(ans,abs(753-d))
print(ans)

    
    
#####File Operations#####
if(fileoperation):
    sys.stdout = orig_stdout
    sys.stdin = orig_stdin
    inputfile.close()
    outputfile.close()

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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


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

Submission status: Wrong Answer

Solution code:
N = input()

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
X=int(input())

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

Submission status: Wrong Answer

Solution code:
# -*- coding: utf-8 -*-
"""
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 = 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')

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

X = int(input())

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

Submission status: Wrong Answer

Solution code:
X=int(raw_input())

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

Submission status: Wrong Answer

Solution code:
if input() in list('357'):
  print('Yes')
else:
  print('No')

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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


if __name__ == "__main__":
    main()

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
n = int(input())

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

Submission status: Wrong Answer

Solution code:
# coding: utf-8
print("YES" if input()==(3 or 5 or 7) else "NO")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
N = input()
if N==3 or N==5 or N==7:
    print("Yes")
else:
    print("No")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

X = int(input())

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

Submission status: Wrong Answer

Solution code:
# encoding: utf-8
N = int(input())
if N == 7 or N == 5 or N == 3: print("Yes")
else: print("NO")

Submission status: Wrong Answer

Solution code:
a=int(input())
if a in [3,5,7]:
    print('Yes')
else:
    print('No')

Submission status: Wrong Answer

Solution code:
n = int(input())

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

Submission status: Accepted

Solution code:
# A 753
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())
print("YES" if X==3 or X==5 or X==7 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:
n = int(input())

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

Submission status: Accepted

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

Submission status: Accepted

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

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:
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 "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:
rStr = input()

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
def main():
    n = int(input())
    # t, a = map(int, input().split())
    # h = list(map(int, input().split()))
    # s = input()
    if n == 7 or n == 5 or n==3 :
        print("YES")
    else: print("NO")



if __name__ == '__main__':
    main()

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
ma = lambda :map(int,input().split())
lma = lambda :list(map(int,input().split()))
tma = lambda :tuple(map(int,input().split()))
ni = lambda:int(input())
yn = lambda fl:print("YES") if fl else print("NO")
import collections
import math
import itertools
import heapq as hq
import sys

x = ni()
f=False
if x in[3,5,7]:
    f=True
yn(f)

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

if i == 3 or i == 5 or i == 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 sys


# \n
def input():
    return sys.stdin.readline().rstrip()


def main():

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





if __name__ == "__main__":
    main()

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

Submission status: Accepted

Solution code:
age = int(input())

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

Submission status: Accepted

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

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

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

Submission status: Accepted

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

Submission status: Accepted

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

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

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

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

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


main()

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

Submission status: Accepted

Solution code:
x = int(input())

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

Submission status: Accepted

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

if '__main__' == __name__:
    resolve()

Submission status: Accepted

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

Submission status: Accepted

Solution code:
X = int(input())

if  X < 9 and X > 1 and X % 2 == 1:
    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:
a = input()
a = int(a)

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import sys

read = sys.stdin.read
readline = sys.stdin.readline
readlines = sys.stdin.readlines
sys.setrecursionlimit(10 ** 9)
INF = 1 << 60
MOD = 1000000007


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

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

    return


if __name__ == '__main__':
    main()

Submission status: Accepted

Solution code:
x = int(input())

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
n = int(input())

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

Submission status: Accepted

Solution code:
#k = int(input())
#s = input()
#a, b = map(int, input().split())
#s, t = map(str, input().split())
#l = list(map(int, input().split()))
#l = [list(map(int,input().split())) for i in range(n)]
#a = [list(input()) for _ in range(n)]
#a = [input() for _ in range(n)]

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

Submission status: Accepted

Solution code:

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


if __name__ == "__main__":
    main()

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-
 
## Library
 
import sys
from fractions import gcd
import math
from math import ceil,floor
import collections
from collections import Counter
import itertools
import copy
 
## input
 
# N=int(input())
# A,B,C,D=map(int, input().split())
# S = input()
# yoko = list(map(int, input().split()))
# tate = [int(input()) for _ in range(N)]
# N, M = map(int,input().split()) 
#    P = [list(map(int,input().split())) for i in range(M)]
#    S = []
#    for _ in range(N):
#        S.append(list(input()))
 
X=int(input())

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

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

Submission status: Accepted

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

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

Submission status: Accepted

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

if __name__ == '__main__':
    main()

Submission status: Accepted

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

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

Submission status: Accepted

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

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:
import sys
read = sys.stdin.buffer.read
readline = sys.stdin.buffer.readline
readlines = sys.stdin.buffer.readlines

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

Submission status: Accepted

Solution code:
X = input()

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

Submission status: Accepted

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