import sys input = sys.stdin.readline S = "IGNITION" i = int(input()) print(S[i-1])