a, b, c = map(int,input().split()) p = c//(a-1+b) now = ((a-1+b)*p) if now == c: print(a*p) else: print(a*p+c-now)