#include <iostream>
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: admin
	Language: C++
	Result: Accepted
	Time:9 ms
	Memory:2072 kb
****************************************************************/