# ACだが前回はちゃんと式も考えているのでそれに従う # 鼻をかむのを除いて鼻水量を式にすると # f(t) = t-1 - (t-1)//T # f(T)は単調増加であり、f(t)==V+P*Vになると醜態 V, T, P = map(int, input().split()) def check(t): v = t-1 - (t-1)//T #print('t', t, 'v', v) if v < V+P*V: return 1 else: return 0 #for t in range(0, 30): # print(t, check(t)) OK = 0 NG = 10**20 while (NG-OK)>1: mid = (NG+OK)//2 if check(mid) == 1: OK = mid else: NG = mid print(NG)