#include <bits/stdc++.h>
using namespace std;
pair<long long, long long> gcd(long long a, long long b) {
  if (b == 0) return {1, 0};
  auto s = gcd(b, a % b);
  return {s.second, s.first - a / b * s.second};
}
int main() {
  long long a, b, c;
  cin >> a >> b >> c;
  auto s = gcd(a, b);
  long long d = s.first * a + s.second * b;
  if (c % d == 0) {
    cout << (-s.first * c / d) << " " << (-s.second * c / d) << endl;
  } else {
    cout << (-1) << endl;
  }
  return 0;
}
