#include<bits/stdc++.h>
using namespace std;
#define debug(...) printf( __VA_ARGS__ )
//#define debug(...) /****nothing****/
#define pb push_back
#define mp make_pair
#define LL long long
#define resett(arr,val,N) for(int ii=0;ii<(N);ii++) arr[ii]=val;
#define PI 2*acos(0.0)
long long extendedEuclid(long long int a, long long int b,long long &x,long long &y) {
if(a == 0) {
x = 0;
y = 1;
return b;
}
long long int x1, y1;
long long ret=extendedEuclid(b % a, a, x1,y1);
x = y1 - b/a*x1;
y=x1;
return ret;
}
int main() {
LL n,a,b,x,y;
while(cin>>n>>a>>b) {
LL gc=extendedEuclid(a,b,x,y); // gc= gcd(a,b)
// cout<<gc<<" "<<x<<" "<<y<<endl;
if(n%gc!=0)
printf("-1\n");
else {
x=x*n/gc;
y=y*n/gc;
// cout<<x<<" "<<y<<endl;
LL k1=ceil((long double)-x*gc/b), k2=y*gc/a;
// cout<<k1<<" "<<k2<<endl;
// k1++;
x=x+k1*b/gc;
y=y-k1*a/gc;
if(x<0 || y<0)
printf("-1\n");
else
printf("%lld %lld\n",x,y);
// if(a*x+b*y==n)
// printf("yes\n");
}
}
return 0;
}
I2luY2x1ZGU8Yml0cy9zdGRjKysuaD4KdXNpbmcgbmFtZXNwYWNlIHN0ZDsKI2RlZmluZSBkZWJ1ZyguLi4pICAgcHJpbnRmKCBfX1ZBX0FSR1NfXyApCi8vI2RlZmluZSBkZWJ1ZyguLi4pICAgLyoqKipub3RoaW5nKioqKi8KI2RlZmluZSBwYiBwdXNoX2JhY2sKI2RlZmluZSBtcCBtYWtlX3BhaXIKI2RlZmluZSBMTCBsb25nIGxvbmcKI2RlZmluZSByZXNldHQoYXJyLHZhbCxOKSBmb3IoaW50IGlpPTA7aWk8KE4pO2lpKyspIGFycltpaV09dmFsOwojZGVmaW5lIFBJIDIqYWNvcygwLjApCgpsb25nIGxvbmcgZXh0ZW5kZWRFdWNsaWQobG9uZyBsb25nIGludCBhLCBsb25nIGxvbmcgaW50IGIsbG9uZyBsb25nICZ4LGxvbmcgbG9uZyAmeSkgewogICAgaWYoYSA9PSAwKSB7CiAgICAgICAgeCA9IDA7CiAgICAgICAgeSA9IDE7CiAgICAgICAgcmV0dXJuIGI7CiAgICB9CgogICAgbG9uZyBsb25nIGludCB4MSwgeTE7CgogICAgbG9uZyBsb25nIHJldD1leHRlbmRlZEV1Y2xpZChiICUgYSwgYSwgeDEseTEpOwoKICAgIHggPSB5MSAtIGIvYSp4MTsKICAgIHk9eDE7CgogICAgcmV0dXJuIHJldDsKfQoKCmludCBtYWluKCkgewoKICAgIExMIG4sYSxiLHgseTsKCiAgICB3aGlsZShjaW4+Pm4+PmE+PmIpIHsKCiAgICAgICAgTEwgZ2M9ZXh0ZW5kZWRFdWNsaWQoYSxiLHgseSk7ICAvLyBnYz0gZ2NkKGEsYikKCi8vICAgICAgICBjb3V0PDxnYzw8IiAiPDx4PDwiICI8PHk8PGVuZGw7CgogICAgICAgIGlmKG4lZ2MhPTApCiAgICAgICAgICAgIHByaW50ZigiLTFcbiIpOwogICAgICAgIGVsc2UgewoKICAgICAgICAgICAgeD14Km4vZ2M7CiAgICAgICAgICAgIHk9eSpuL2djOwoKLy8gICAgICAgICAgICBjb3V0PDx4PDwiICI8PHk8PGVuZGw7CgogICAgICAgICAgICBMTCBrMT1jZWlsKChsb25nIGRvdWJsZSkteCpnYy9iKSwgazI9eSpnYy9hOwoKLy8gICAgICAgICAgICBjb3V0PDxrMTw8IiAiPDxrMjw8ZW5kbDsKLy8gICAgICAgICAgICAgICAgazErKzsKICAgICAgICAgICAgeD14K2sxKmIvZ2M7CiAgICAgICAgICAgIHk9eS1rMSphL2djOwoKICAgICAgICAgICAgaWYoeDwwIHx8IHk8MCkKICAgICAgICAgICAgICAgIHByaW50ZigiLTFcbiIpOwogICAgICAgICAgICBlbHNlCiAgICAgICAgICAgICBwcmludGYoIiVsbGQgJWxsZFxuIix4LHkpOwovLyAgICAgICAgICAgIGlmKGEqeCtiKnk9PW4pCi8vICAgICAgICAgICAgICAgIHByaW50ZigieWVzXG4iKTsKCgogICAgICAgIH0KCgoKICAgIH0KCgogICAgcmV0dXJuIDA7Cn0KCgoK