#include <bits/stdc++.h>
using namespace std;
long long gcdExtended(long long a, long long b, long long *x, long long *y) {
  if (a == 0) {
    *x = 0;
    *y = 1;
    return b;
  }
  long long x1, y1;
  long long gcd = gcdExtended(b % a, a, &x1, &y1);
  *x = y1 - (b / a) * x1;
  *y = x1;
  return gcd;
}
int main() {
  long long x, y, a, b, c;
  cin >> a >> b >> c;
  c = -c;
  long long g = gcdExtended(a, b, &x, &y);
  if (c % g == 0)
    cout << c * x / g << " " << c * y / g << endl;
  else
    cout << "-1" << endl;
  return 0;
}
