n = io.read("*n") if n % 400 == 0 then print("Yes") elseif n % 100 == 0 then print("No") elseif n % 4 == 0 then print("Yes") else print("No") end