#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: 1394 User: yangjunwen Language: C++ Result: Wrong Answer ****************************************************************/