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