#include<bits/stdc++.h> using namespace std; int x,y,t,a,b,c,d; int main(){ cin>>x>>y>>t; a=x*t; while((a%y*x)>=y){ c=a/y; d=d+c*y; a=a-c*y; } d+=a; cout<<d; return 0; }