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