#include <bits/stdc++.h>
using namespace std;
using ll = long long int;
ll egcd(ll a, ll b, ll &x, ll &y) {
  ll d;
  if (!b) {
    x = 1LL;
    y = 0LL;
    return a;
  } else {
    d = egcd(b, a % b, y, x);
    y -= a / b * x;
    return d;
  }
}
int main() {
  ll a, b, c, x, y, gcd;
  while (cin >> a >> b >> c) {
    gcd = egcd(a, b, x, y);
    if (c % gcd) {
      puts("-1");
    } else {
      cout << ((x * -c) / gcd) << " " << ((y * -c) / gcd) << "\n";
    }
  }
  return 0;
}
