a=input();print("NO") if a!="5" and a!="3" and a!="7" else print("YES")

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

a = input()
print("NO") if a != "5" and a != "3" and a != "7" else print("YES")

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

-a = input() -print("NO") if a != "5" and a != "3" and a != "7" else print("YES") +print("YES") if input() in ["3", "5", "7"] else print("NO")