N = int(input()) if N >= 7: print(2) else: print((None, None, 'INF', 6, 6, 4, 4)[N])