A = int(input()) B = int(input()) if(A != 1): print(-B//(A-1)) else: print(4318763456)