X = int(eval(input()))

if(X in [7, 5, 3]):

  print("YES")

else:

  print("NO")
x = int(eval(input()))

ans = "NO"

if x in [7, 5, 3]:

  ans = "YES"

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

x = int(eval(input()))
ans = "NO"
if x in [7, 5, 3]:
    ans = "YES"
print(ans)

-X = int(eval(input())) -if X in [7, 5, 3]: -    print("YES") -else: -    print("NO") +x = int(eval(input())) +ans = "NO" +if x in [7, 5, 3]: +    ans = "YES" +print(ans)