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