#include<iostream>
#include<string>
using namespace std;
int main()
{
int x,a,b;
cin>>x>>a>>b;
for(int i = 1;i<=(x-b)/a;i++)
{
int j=(x-i*a)/b;
if(i*a+j*b == x && i%2==0 && j%2==0)
{
}
}
}
#include<iostream>
#include<string>
using namespace std;
int main()
{
for(int i = 1;i<=(40-8)/3;i++)
{
int j=(40-3)/8;
if(40-i*3+j*8==40)
{
cout<<i<<" "<<j<<endl;
}
}
}
#include<iostream>
#include<string>
using namespace std;
int main()
{
int x,a,b;
cin>>x>>a>>b;
for(int i = 1;i<=(x-b)/a;i++)
{
int j=(x-i*a)/b;
if(i*a+j*b==x)
{
cout<<j<<" "<<j<<endl;
}
}
}