require 'date' puts Date.new(gets.to_i).leap? ? "Yes" : "No"