import sys input = sys.stdin.readline N,K=map(int,input().split()) if N==0 and K!=0: print("INF") sys.exit() for i in range(30): if (1<