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