n=gets.to_i if n%400==0 puts "Yes" elsif n%100==0 puts "No" elsif n%4==0 puts "Yes" else puts "No" end