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