#yuki1101 v,t,p=map(int,input().split()) v*=p+1 res=v+1+(v-1)//(t-1) print(res)