A,B,C=map(int,input().split()) x=C//(B+A-1) r=C%(B+A-1) print(A*x+r)