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