a, b, c = [ int (v) for v in input().split() ] def getmoney(y): u = y // a v = y + (b-1) * u return v stop = 0 high = c low = 1 mid = (high + low) // 2 t = 0 anslist = [] while stop == 0: anslist.append(mid) if getmoney(mid) == c: stop = 1 ans = mid elif getmoney(mid) > c: high = mid mid = (high + low) // 2 else: low = mid mid = (high + low) // 2 if len(anslist)> 4 and [anslist[-1],anslist[-2]] == [anslist[-3],anslist[-4]]: stop = 1 if getmoney(anslist[-1]) < c: print(anslist[-1]+1) else: print(anslist[-1])