X = int(eval(input()))

if X == 7 or X == 5 or X == 3:

    print('YES')

else:

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

if x in [7, 5, 3]:

    print('YES')

else:

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

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

-X = int(eval(input())) -if X == 7 or X == 5 or X == 3: +x = int(eval(input())) +if x in [7, 5, 3]: