AtCoder Beginner Contest 114 - 753

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-----
5

-----Sample Output-----
YES

The growth of a five-year-old child will be celebrated.

Difficulty: EASY

Starter code:

Solutions:
s = int(input())
print('YES' * (2 < s % 2 * s < 8) or 'NO')


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


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


print({True: 'YES', False: 'NO'}[int(input()) in [7, 5, 3]])


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


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


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


X = input()
print('YES' if X in '753' else 'NO')


x = int(input())
print('YES' if [7, 5, 3].count(x) else 'NO')


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


print('YES' if input() in '357' else 'NO')


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


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


import math
x = input()
print('YES' if x in '357' else 'NO')


print(['NO', 'YES'][[7, 5, 3].count(int(input()))])


n = int(input())
print('YES' if 105 % n < 1 and n > 1 else 'NO')


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


print(['YES', 'NO'][not input() in '753'])


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


print('YES' * (input() in '357') or 'NO')


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

def __starting_point():
	main()
__starting_point()


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


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


print('YNEOS'[input() not in '753'::2])


n = int(input())
if any((c == n for c in [3, 5, 7])):
	print('YES')
else:
	print('NO')


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


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


print(['NO', 'YES'][input() in ['3', '5', '7']])


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


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


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


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


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)


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


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


x = input()
print(['NO', 'YES'][x == '7' or x == '5' or x == '3'])


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


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


x = input()
print('NO' if '735'.find(x) == -1 else 'YES')


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


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


n = input()
print('YES' if n in '753' else 'NO')


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


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


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


X = int(input())
if X < 9 and X > 1 and (X % 2 == 1):
	print('YES')
else:
	print('NO')


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


print(input() in '753' and 'YES' or 'NO')


import sys
X = int(input())
if (X == 3) | (X == 5) | (X == 7):
	print('YES')
else:
	print('NO')


x = int(input())
ans = ['NO', 'YES'][x == 7 or x == 5 or x == 3]
print(ans)


n = int(input())
print(['NO', 'YES'][n == 3 or n == 5 or n == 7])


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


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


x = input()
print(['NO', 'YES'][x in '357'])


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


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


s = [3, 5, 7]
print('YES' if s.count(int(input())) > 0 else 'NO')


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


N = str(input())
N_List = ['3', '5', '7']
if N in N_List:
	print('YES')
else:
	print('NO')


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


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


a = input()
print('YES' if a in '753' else 'NO')


c = input()
if c in '753':
	print('YES')
else:
	print('NO')


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


import numpy as np

def lcm(a, b):
	return a * b // math.gcd(a, b)
MOD = 10 ** 9 + 7
x = int(input())
L = [3, 5, 7]
if x in L:
	print('YES')
else:
	print('NO')


y = input()
print('YES' if y in '753' else 'NO')


l = [1, 1, 1, 0, 1, 0, 1, 0, 1, 1]
print('YNEOS'[l[int(input())]::2])


print('YES' if '753'.count(input()) >= 1 else 'NO')


ans = ['YES', 'NO'][input() not in '357']
print(ans)


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


print('YES' if int(input()) % 7 % 5 % 3 == 0 else 'NO')


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


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


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


n = int(input())
print(['NO', 'YES'][n in {3, 5, 7}])


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


print('YES' if '357'.find(input()) >= 0 else 'NO')


x = int(input())
l = [7, 5, 3]
for i in l:
	if x == i:
		print('YES')
		return
print('NO')


rStr = input()
A = int(rStr.split(' ')[0])
if A == 7 or A == 5 or A == 3:
	print('YES')
else:
	print('NO')


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


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