#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 r = exgcd(b, a % b, x, y);
  long long t = x;
  x = y;
  y = t - a / b * y;
  return r;
}
long long A, B, C;
int main() {
  cin >> A >> B >> C;
  long long x, y;
  long long gd = exgcd(A, B, x, y);
  if (-C % gd != 0)
    cout << -1 << endl;
  else {
    long long n = -C / gd;
    cout << x * n << " " << y * n << endl;
  }
}
