#include<stdio.h>
#include<string.h>
#include<math.h>
#include<algorithm>
using namespace std;
typedef long long LL;
LL gcd(LL a,LL b)
{
return b ? gcd(b, a%b) : a;
}
void euclid(LL a, LL b,LL &x, LL &y)
{
if(!b){
x = 1; y = 0 ;return ;
}
euclid(b,a%b,y,x);
y -= x*(a/b);
}
int main()
{
__int64 a, b, c, x, y;
while(scanf("%I64d%I64d%I64d",&a, &b, &c)==3)
{
c = -c;
LL g = gcd(a,b);
if(c%g)
{
printf("-1\n");continue;
}
a/=g;
b/=g;
c/=g;
euclid(a,b,x,y);
printf("%I64d %I64d\n",x*c,y*c);
}
return 0;
}