i = int(input()) line = "IGNITION" print(line[i - 1])