import re inp1_ = input() spl_ = re.split(" +", inp1_) int1_ = int(spl_[0]) int2_ = int(spl_[1]) l_ = list(map(lambda x:x, range(0, int2_ + int1_,int1_))) sum_ = len(l_) - 1 print(sum_)