""" x*A+B = x (A-1)x = -B """ import sys A = int(input()) B = int(input()) if A == 1: print (B) else: x = -B // (A-1) print (x)