#include <bits/stdc++.h>
using namespace std;
const int oo = 1e9 + 7;
const int maxn = 1e6 + 7;
long long gcd(long long a, long long b) { return b == 0 ? a : gcd(b, a % b); }
void solve(long long a, long long b, long long &x, long long &y) {
  if (b == 0) {
    x = 1;
    y = 0;
    return;
  }
  solve(b, a % b, x, y);
  long long t;
  t = x;
  x = y;
  y = t - (a / b) * y;
  return;
}
int main() {
  long long x, y, a, b, c, son;
  while (~scanf("%lld %lld %lld", &a, &b, &c)) {
    son = gcd(a, b);
    if (c % son) {
      printf("-1\n");
      continue;
    }
    a /= son;
    b /= son;
    c /= son;
    c = -c;
    solve(a, b, x, y);
    printf("%lld %lld\n", x * c, y * c);
  }
  return 0;
}
