a,b,c=map(int,input().split()) d=b+a-1 e=c//d print(a*e+c-d*e)