local n = io.read(); n = tonumber(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