s = int(input()) word = list["I","G","N","I","T","T","I","O","N"] word[s-1]