#include <bits/stdc++.h>
using namespace std;
long long a, b, c, x, y, d;
void extendedEuclid(int a, int b) {
  if (b == 0) {
    x = 1;
    y = 0;
    d = a;
    return;
  }
  extendedEuclid(b, a % b);
  long long x1 = y;
  long long y1 = x - (a / b) * y;
  x = x1;
  y = y1;
}
int main() {
  scanf("%lld %lld %lld", &a, &b, &c);
  extendedEuclid(a, b);
  int s = a * x + y * b;
  if (c % d == 0) {
    printf("%lld %lld", x * (-c / d), y * (-c / d));
  } else
    printf("-1");
  return 0;
}
