#include #include #include #include #include #include using namespace std; int main(){ int v,t,p; cin >> v >> t >> p; unsigned long long ans=v*p+((v+(t-1))/t)*2+v; cout << ans << endl; return 0; }