#include <bits/stdc++.h> using namespace std; int main(){ int n,x,y,i,t; cin>>n>>x>>y; for(i = 1;i <= (n - y) / x;i++){ t = n - i * x; if(t % y == 0 && i + t / y > 50){ cout<<i<<" "<<t / y<<endl; } } } /************************************************************** Problem: 1396 User: linmiaoling Language: C++ Result: Accepted Time:18 ms Memory:2072 kb ****************************************************************/