Problem: A line on the plane is described by an equation Ax + By + C = 0. You are to find any point on this line, whose coordinates are integer numbers from  - 5·1018 to 5·1018 inclusive, or to find out that such points do not exist.

Input

The first line contains three integers A, B and C ( - 2·109 ≤ A, B, C ≤ 2·109) — corresponding coefficients of the line equation. It is guaranteed that A2 + B2 > 0.

Output

If the required point exists, output its coordinates, otherwise output -1.

Examples

Input

2 5 3


Output

6 -3

Solution (in JAVA):

Solution:
import java.util.*;
import java.io.*;

public class Solver {
    static long[] gcd(long a, long b, long x, long y){
        if(a == 0){
            x = 0; y = 1;
            long q[] = new long[3];
            q[0] = b;
            q[1] = x;
            q[2] = y;
            return q;
        }
        long tt[] = gcd(b%a,a,x,y);
        long d = tt[0];
        x = tt[2] - (b/a)*tt[1];
        y = tt[1];
        long pp[] = new long[3];
        pp[0] = d;
        pp[1] = x;
        pp[2] = y;
        return pp;
    }
    public static void main(String[] args) throws IOException {
/*
        Scanner in = new Scanner(new File("stack.in"));
        PrintWriter out = new PrintWriter("stack.out");
       */
        Scanner in = new Scanner(System.in);
        PrintWriter out = new PrintWriter(System.out);
        long a = in.nextInt();
        long b = in.nextInt();
        long c = -in.nextInt();
        if(a == 0){
            if(c / b == (double)(long)c/b){
                System.out.println(0 + " " + c/b);
            }else System.out.println(-1);
            return;
        }
        if(b == 0){
            if(c / a == (double)(long)c/a){
                System.out.println(c/a + " " +0);
            }else System.out.println(-1);
            return;
        }
        long pp[] = gcd(a,b,0,0);
        if(c % pp[0] != 0){
            System.out.println(-1);
            return;
        }
        System.out.println(pp[1] * c / pp[0] + " " + pp[2] * c / pp[0]);
    }
}