#include using namespace std; int main() { int p,t=0,c=0; int d; int m; int s; cin >> p >> d >> m >> s; while(1) { t=t+p; p=p-d; if(p