#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 ans = exgcd(b, a % b, x, y);
  long long temp = x;
  x = y;
  y = temp - a / b * y;
  return ans;
}
int main() {
  long long a, b, c, x, y;
  scanf("%lld%lld%lld", &a, &b, &c);
  long long g = exgcd(a, b, x, y);
  if (c % g != 0) {
    printf("-1\n");
  } else {
    x *= -c / g;
    y *= -c / g;
    printf("%lld %lld\n", x, y);
  }
  return 0;
}
