N=int(input()) if N==2: print("INF") elif N==3: print(7) if N==4: print(5) else: print(4)