#include <bits/stdc++.h>
using namespace std;
struct _ {
  _() {
    ios_base::sync_with_stdio(0);
    cin.tie(0);
  }
} _;
template <class A, class B>
ostream& operator<<(ostream& o, pair<A, B> t) {
  o << "(" << t.first << ", " << t.second << ")";
  return o;
}
template <class T>
T convert(const string& s) {
  char* p;
  if (is_integral<T>())
    return strtoll(s.c_str(), &p, 10);
  else
    return strtod(s.c_str(), &p);
}
template <class T>
void PV(T a, T b, int p = 0, int w = 0, string s = " ") {
  int c = 0;
  while (a != b) {
    cout << setw(w) << *a++;
    cout << ((a != b && (!p || ++c % p)) ? s : "\n");
  }
  cout.flush();
}
template <class T>
inline bool chmin(T& a, T b) {
  return a > b ? a = b, 1 : 0;
}
template <class T>
inline bool chmax(T& a, T b) {
  return a < b ? a = b, 1 : 0;
}
const long long linf = 0x3f3f3f3f3f3f3f3fLL;
const int inf = 0x3f3f3f3f;
const int mod = int(1e9) + 7;
const int N = 100010;
template <class T = long long>
T extGcd(T a, T b, T& first, T& second) {
  if (b == 0) {
    first = 1;
    second = 0;
    return a;
  }
  T g = extGcd(b, a % b, second, first);
  second -= a / b * first;
  return g;
}
long long A, B, C;
int main() {
  cin >> A >> B >> C;
  long long x0, y0;
  long long g = extGcd(A, B, x0, y0);
  if (C % g) {
    cout << -1 << endl;
    return 0;
  }
  x0 *= -C / g;
  y0 *= -C / g;
  cout << x0 << " " << y0 << endl;
  return 0;
}
