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