if int(eval(input())) in [3,5,7]:print('YES')

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

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

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

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