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 PYTHON3):

Solution:
from math import *
a,b,c=list(map(int,input().split()))
if b==0:
    if c%a==0:
        print(round(-c/a),0)
    else:
        print(-1)
elif a==0:
    if c%b==0:
        print(0,round(-c/b))
    else:
        print(-1)
else:
    if c%gcd(a,b)!=0:
        print(-1)
    else:
        if abs(a)==abs(b):
            x=0
            y=(-c-a*x)/b
            y=round(y)
            print(x,y)
        else:
            if abs(b)>abs(a):
                z=[abs(b),abs(a)]
                c1=abs(c)
                if (a>=0 and b<0) or (a<0 and b>=0):
                    if (c>=0 and a<0) or (c<0 and a>=0):
                        v=[c1,-(c1%abs(a))]
                        h=2
                    else:
                        v=[-c1,(c1%abs(a))]
                        h=3
                else:
                    if (c>=0 and a>=0) or (c<0 and a<0):
                        v=[-c1,-(c1%abs(a))]
                        h=-1
                    else:
                        v=[c1,(c1%abs(a))]
                        h=1
                i=2
                c1%=abs(a)
                while z[-2]%z[-1]>1:
                    z.append(z[-2]%z[-1])
                    i+=1
                    c1%=abs(z[-1])
                    if h==2:
                        v.append(c1*(-1)**(i+1))
                    elif h==3:
                        v.append(c1*(-1)**i)
                    else:
                        v.append(h*c1)
                if h==-1 or h==1:
                    for j in range(i):
                        z[j]=-z[j]
                x=v[-1]
                for j in range(i-2,-1,-1):
                    x=(x*z[j]+v[j])//abs(z[j+1])
                y=(-c-a*x)//b
                print(x,y)
            else:
                w=a
                a=b
                b=w
                z=[abs(b),abs(a)]
                c1=abs(c)
                if (a>=0 and b<0) or (a<0 and b>=0):
                    if (c>=0 and a<0) or (c<0 and a>=0):
                        v=[c1,-(c1%abs(a))]
                        h=2
                    else:
                        v=[-c1,(c1%abs(a))]
                        h=3
                else:
                    if (c>=0 and a>=0) or (c<0 and a<0):
                        v=[-c1,-(c1%abs(a))]
                        h=-1
                    else:
                        v=[c1,(c1%abs(a))]
                        h=1
                i=2
                c1%=abs(a)
                while z[-2]%z[-1]>1:
                    z.append(z[-2]%z[-1])
                    i+=1
                    c1%=abs(z[-1])
                    if h==2:
                        v.append(c1*(-1)**(i+1))
                    elif h==3:
                        v.append(c1*(-1)**i)
                    else:
                        v.append(h*c1)
                if h==-1 or h==1:
                    for j in range(i):
                        z[j]=-z[j]
                x=v[-1]
                for j in range(i-2,-1,-1):
                    x=(x*z[j]+v[j])//abs(z[j+1])
                y=(-c-a*x)//b
                print(y,x)