puts [90,270].include?(gets.to_i%360) ? "Yes" : "No"