y = list('INGITION') i = int(input()) print(y[i - 1])