#include #include using namespace std; int main() { int a,b,x; cin >> a >> b >> x; if(x%b==0)cout << x/a*b << endl; else cout << (x/a+1)*b << endl; }