V,T,P=map(int,input().split()) V*=P+1 V+=1 print((V//(T-1))*T+V%(T-1))