require "date" n = gets.to_i a = Date.new(2008, 10, 1) b = Date.new(1984, 11, 6) q = Date.new(n, 12, 31) if q >= a puts "Namiki Secondary School" elsif b <= q && q < a puts "Namiki High School" else puts "None" end