#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 % 2 == 0 && t / y % 2 == 0){
            cout<<i<<" "<<t / y<<endl;
        }
    }  
}
/**************************************************************
	Problem: 1227
	User: yangjunwen
	Language: C++
	Result: Accepted
	Time:10 ms
	Memory:2072 kb
****************************************************************/