a = gets.to_i if a.modulo(4) == 0 && a.modulo(100) != 0 puts "Yes" elsif a.modulo(400) == 0 puts "Yes" else puts "No" end