n = gets.chomp.split case n[1] when "?" puts "14" when "3" puts "1" when "2" puts "4" end