shichigosan = [7, 5, 3]

X = int(input())



ans = 'NO'



for i in range(0, 3):

	if X == shichigosan[i]: ans = 'YES'



print(ans)
lst = [7, 5, 3]

X = int(input())

if X in lst: print('YES')

else: print('NO')
shichigosan = [7, 5, 3]
X = int(input())
ans = "NO"
for i in range(0, 3):
    if X == shichigosan[i]:
        ans = "YES"
print(ans)

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

-shichigosan = [7, 5, 3] +lst = [7, 5, 3] -ans = "NO" -for i in range(0, 3): -    if X == shichigosan[i]: -        ans = "YES" -print(ans) +if X in lst: +    print("YES") +else: +    print("NO")