#include #include #include #include #include using namespace std; int main() { /* Enter your code here. Read input from STDIN. Print output to STDOUT */ int m,p,d,s; cin>>m>>p>>d>>s; int c1=m,a1=0; while(c1<=s) { //cout<