local n=io.read("*n") local zero=math.floor(math.sin(math.pi)) local one=math.abs(math.cos(math.pi)) local two=math.floor(math.exp(one)) local cheker=true for i=two,math.sqrt(n) do if n%i==zero then cheker=false end end print(cheker and "YES" or "NO")