A,B,C=map(int,input().split()) OK=10**18 NG=0 while OK>NG+1: mid=(OK+NG)//2 k=mid//A score=k*B+(mid-k) if score>=C: OK=mid else: NG=mid print(OK)