def main(): n = int(input()) secondary = 2008 high = 1984 if n >= secondary: print("Namiki Secondary School") elif n >= high: print("Namiki High School") else: print("None") main()