Tomorrow is a difficult day for Polycarp: he has to attend $a$ lectures and $b$ practical classes at the university! Since Polycarp is a diligent student, he is going to attend all of them.

While preparing for the university, Polycarp wonders whether he can take enough writing implements to write all of the lectures and draw everything he has to during all of the practical classes. Polycarp writes lectures using a pen (he can't use a pencil to write lectures!); he can write down $c$ lectures using one pen, and after that it runs out of ink. During practical classes Polycarp draws blueprints with a pencil (he can't use a pen to draw blueprints!); one pencil is enough to draw all blueprints during $d$ practical classes, after which it is unusable.

Polycarp's pencilcase can hold no more than $k$ writing implements, so if Polycarp wants to take $x$ pens and $y$ pencils, they will fit in the pencilcase if and only if $x + y \le k$.

Now Polycarp wants to know how many pens and pencils should he take. Help him to determine it, or tell that his pencilcase doesn't have enough room for all the implements he needs tomorrow!

Note that you don't have to minimize the number of writing implements (though their total number must not exceed $k$).


-----Input-----

The first line of the input contains one integer $t$ ($1 \le t \le 100$) — the number of test cases in the input. Then the test cases follow.

Each test case is described by one line containing five integers $a$, $b$, $c$, $d$ and $k$, separated by spaces ($1 \le a, b, c, d, k \le 100$) — the number of lectures Polycarp has to attend, the number of practical classes Polycarp has to attend, the number of lectures which can be written down using one pen, the number of practical classes for which one pencil is enough, and the number of writing implements that can fit into Polycarp's pencilcase, respectively.

In hacks it is allowed to use only one test case in the input, so $t = 1$ should be satisfied.


-----Output-----

For each test case, print the answer as follows:

If the pencilcase can't hold enough writing implements to use them during all lectures and practical classes, print one integer $-1$. Otherwise, print two non-negative integers $x$ and $y$ — the number of pens and pencils Polycarp should put in his pencilcase. If there are multiple answers, print any of them. Note that you don't have to minimize the number of writing implements (though their total number must not exceed $k$).


-----Example-----
Input
3
7 5 4 5 8
7 5 4 5 2
20 53 45 26 4

Output
7 1
-1
1 3



-----Note-----

There are many different answers for the first test case; $x = 7$, $y = 1$ is only one of them. For example, $x = 3$, $y = 1$ is also correct.

$x = 1$, $y = 3$ is the only correct answer for the third test case.

Difficulty: interview

Starter code:

Solutions:
from math import *


def ri():
    return int(input())


def rli():
    return list(map(int, input().split()))


q = ri()
for _ in range(q):
    a, b, c, d, k = rli()
    x = int(ceil(a / c))
    y = int(ceil(b / d))
    if x + y <= k:
        print(x, y)
    else:
        print(-1)


def main():
    import sys
    input = sys.stdin.readline
    
    def solve():
        a, b, c, d, k = list(map(int, input().split()))
        x = (a + c - 1) // c
        y = (b + d - 1) // d
        if x + y > k:
            print(-1)
        else:
            print(x, y)
    
    for _ in range(int(input())):
        solve()
    
    return 0

main()


t = int(input())
for _ in range(t) :
    a, b, c, d, k = list(map(int, input().split()))
    x = (a + c - 1) // c
    y = (b + d - 1) // d
    if x + y <= k :
        print(x, y)
    else :
        print(-1)


# Contest: Codeforces Round #592 (Div. 2) (https://codeforces.com/contest/1244)
# Problem: A: Pens and Pencils (https://codeforces.com/contest/1244/problem/A)

def rint():
    return int(input())


def rints():
    return list(map(int, input().split()))


t = rint()
for _ in range(t):
    a, b, c, d, k = rints()
    x = (a + c - 1) // c
    y = (b + d - 1) // d
    if x + y > k:
        print(-1)
    else:
        print(x, y)


from math import ceil

for __ in range(int(input())):
    a, b, c, d, k = list(map(int, input().split()))
    x = ceil(a / c)
    y = ceil(b / d)
    if x + y > k:
        print(-1)
    else:
        print(x, y)

import math
amount = int(input())
for i in range(amount):
    a, b, c, d, k = [int(s) for s in input().split()]
    if math.ceil(a/c) + math.ceil(b/d) > k:
        print(-1)
    else:
        print(math.ceil(a/c), math.ceil(b/d))

def solve():
    a, b, c, d, k = list(map(int, input().split()))
    x = (a + c - 1) // c
    y = (b + d - 1) // d
    if x + y > k:
        print(-1)
    else:
        print(x, y)


def main():
    t = int(input())
    for _ in range(t):
        solve()


main()


from math import ceil
t=int(input())
for i in range(t):
    a,b,c,d,k=[int(x) for x in input().split()]
    x=ceil(a/c)
    y=ceil(b/d)
    if x+y<=k:
        print(x,y)
    else:
        print(-1)


for _ in range(int(input())):
    a, b, c, d, k = list(map(int, input().split()))
    x = (a - 1) // c + 1
    y = (b - 1) // d + 1
    if y + x <= k:
        print(x, y)
    else:
        print(-1)


import math
t = int(input())
for i in range(t):
    a, b, c, d, k = list(map(int, input().split()))
    first = math.ceil(a / c)
    second = math.ceil(b / d)
    if first + second <= k:
        print(first, second)
    else:
        print(-1)


t = int(input())
for _ in range(t):
    a, b, c, d, k = map(int, input().split())
    x = (a - 1) // c + 1
    y = (b - 1) // d + 1
    if x + y <= k:
        print(x, y)
    else:
        print(-1)

import math
from collections import deque, defaultdict
from sys import stdin, stdout
input = stdin.readline
# print = stdout.write
listin = lambda : list(map(int, input().split()))
mapin = lambda : map(int, input().split())
intin = lambda : int(input())
for _ in range(intin()):
    a, b, c, d, k = mapin()
    npen = math.ceil(a/c)
    npencil = math.ceil(b/d)
    if npen+npencil <= k:
        print(npen, npencil)
    else:
        print(-1)

import sys
import itertools
import math
import collections
from collections import Counter


#########################
# imgur.com/Pkt7iIf.png #
#########################

def pow(x, y, mod):
    r = 1
    x = x % mod
    while y > 0:
        if y & 1:
            r = (r * x) % mod
        y = y >> 1
        x = (x * x) % mod
    return r
def sieve(n):
    prime = [True for i in range(n + 1)]
    p = 2
    while (p * p <= n):
        if (prime[p] == True):
            for i in range(p * 2, n + 1, p):
                prime[i] = False
        p += 1
    prime[0] = prime[1] = False
    r = [p for p in range(n + 1) if prime[p]]
    return r
def divs(n, start=1):
    r = []
    for i in range(start, int(math.sqrt(n) + 1)):
        if (n % i == 0):
            if (n / i == i):
                r.append(i)
            else:
                r.extend([i, n // i])
    return r
def cdiv(n, k): return n // k + (n % k != 0)
def ii(): return int(input())
def mi(): return map(int, input().split())
def li(): return list(map(int, input().split()))
def lcm(a, b): return abs(a * b) // math.gcd(a, b)
def prr(a, sep=' '): print(sep.join(map(str, a)))
def dd(): return collections.defaultdict(int)

t = ii()
for _ in range(t):
    a,b,c,d,k = mi()
    t = cdiv(a, c)
    r = cdiv(b, d)
    print(t, r) if t + r <= k else print(-1)



#    !/usr/bin/env python3
#    encoding: UTF-8
#    Modified: <13/Oct/2019 02:38:22 PM>


#    ✪ H4WK3yE乡
#    Mohd. Farhan Tahir
#    Indian Institute Of Information Technology (IIIT), Gwalior


import sys
import os
from io import IOBase, BytesIO


def main():
    from math import ceil

    for tc in range(int(input())):
        a, b, c, d, k = get_ints()
        pen = ceil(a / c)
        pencil = ceil(b / d)
        if pen + pencil > k:
            print(-1)
        else:
            print(pen, pencil)


BUFSIZE = 8192


class FastIO(BytesIO):
    newlines = 0

    def __init__(self, file):
        self._file = file
        self._fd = file.fileno()
        self.writable = "x" in file.mode or "w" in file.mode
        self.write = super(FastIO, self).write if self.writable else None

    def _fill(self):
        s = os.read(self._fd, max(os.fstat(self._fd).st_size, BUFSIZE))
        self.seek((self.tell(), self.seek(0, 2), super(FastIO, self).write(s))[0])
        return s

    def read(self):
        while self._fill():
            pass
        return super(FastIO, self).read()

    def readline(self):
        while self.newlines == 0:
            s = self._fill()
            self.newlines = s.count(b"\n") + (not s)
        self.newlines -= 1
        return super(FastIO, self).readline()

    def flush(self):
        if self.writable:
            os.write(self._fd, self.getvalue())
            self.truncate(0), self.seek(0)


class IOWrapper(IOBase):
    def __init__(self, file):
        py2 = round(0.5)
        self.buffer = FastIO(file)
        self.flush = self.buffer.flush
        self.writable = self.buffer.writable
        if py2 == 1:
            self.write = self.buffer.write
            self.read = self.buffer.read
            self.readline = self.buffer.readline
        else:
            self.write = lambda s: self.buffer.write(s.encode("ascii"))
            self.read = lambda: self.buffer.read().decode("ascii")
            self.readline = lambda: self.buffer.readline().decode("ascii")


sys.stdin, sys.stdout = IOWrapper(sys.stdin), IOWrapper(sys.stdout)


def get_array():
    return list(map(int, sys.stdin.readline().split()))


def get_ints():
    return list(map(int, sys.stdin.readline().split()))


def input():
    return sys.stdin.readline().strip()


def __starting_point():
    main()

__starting_point()

for _ in range(int(input())):
    a, b, c, d, k = list(map(int, input().split()))
    x = (a - 1) // c + 1
    y = (b - 1) // d + 1
    if x + y > k:
        print('-1')
    else:
        print(x, y)


import sys
input = lambda: sys.stdin.readline().strip()
from math import *

t = int(input())
for i in range(t):
    a, b, c, d, e = list(map(int, input().split()))
    if ceil(a/c)+ceil(b/d)<=e:
        print(ceil(a/c), ceil(b/d))
    else:
        print(-1)


for t in range(int(input())):
    a, b, c, d, k = map(int, input().split())
    if (a - 1) // c + 1 + (b - 1) // d + 1 <= k:
        print((a - 1) // c + 1, (b - 1) // d + 1)
    else:
        print(-1)

for _ in range(int(input())):
    a, b, c, d, k = map(int, input().split())
    x, y = (a + c - 1) // c, (b + d - 1) // d
    if x + y <= k: print(x, y)
    else: print(-1)

''' CODED WITH LOVE BY SATYAM KUMAR '''

from sys import stdin, stdout
import heapq
import cProfile, math
from collections import Counter, defaultdict, deque
from bisect import bisect_left, bisect, bisect_right
import itertools
from copy import deepcopy
from fractions import Fraction
import sys, threading
import operator as op
from functools import reduce
import sys

sys.setrecursionlimit(10 ** 6)  # max depth of recursion
threading.stack_size(2 ** 27)  # new thread will get stack of such size
fac_warm_up = False
printHeap = str()
memory_constrained = False
P = 10 ** 9 + 7


class MergeFind:
    def __init__(self, n):
        self.parent = list(range(n))
        self.size = [1] * n
        self.num_sets = n
        self.lista = [[_] for _ in range(n)]

    def find(self, a):
        to_update = []
        while a != self.parent[a]:
            to_update.append(a)
            a = self.parent[a]
        for b in to_update:
            self.parent[b] = a
        return self.parent[a]

    def merge(self, a, b):
        a = self.find(a)
        b = self.find(b)
        if a == b:
            return
        if self.size[a] < self.size[b]:
            a, b = b, a
        self.num_sets -= 1
        self.parent[b] = a
        self.size[a] += self.size[b]
        self.lista[a] += self.lista[b]

    def set_size(self, a):
        return self.size[self.find(a)]

    def __len__(self):
        return self.num_sets


def display(string_to_print):
    stdout.write(str(string_to_print) + "\n")


def prime_factors(n):  # n**0.5 complex
    factors = dict()
    for i in range(2, math.ceil(math.sqrt(n)) + 1):
        while n % i == 0:
            if i in factors:
                factors[i] += 1
            else:
                factors[i] = 1
            n = n // i
    if n > 2:
        factors[n] = 1
    return (factors)


def all_factors(n):
    return set(reduce(list.__add__,
                      ([i, n // i] for i in range(1, int(n ** 0.5) + 1) if n % i == 0)))


def fibonacci_modP(n, MOD):
    if n < 2: return 1
    return (cached_fn(fibonacci_modP, (n + 1) // 2, MOD) * cached_fn(fibonacci_modP, n // 2, MOD) + cached_fn(
        fibonacci_modP, (n - 1) // 2, MOD) * cached_fn(fibonacci_modP, (n - 2) // 2, MOD)) % MOD


def factorial_modP_Wilson(n, p):
    if (p <= n):
        return 0
    res = (p - 1)
    for i in range(n + 1, p):
        res = (res * cached_fn(InverseEuler, i, p)) % p
    return res


def binary(n, digits=20):
    b = bin(n)[2:]
    b = '0' * (digits - len(b)) + b
    return b


def is_prime(n):
    """Returns True if n is prime."""
    if n < 4:
        return True
    if n % 2 == 0:
        return False
    if n % 3 == 0:
        return False
    i = 5
    w = 2
    while i * i <= n:
        if n % i == 0:
            return False
        i += w
        w = 6 - w
    return True


def generate_primes(n):
    prime = [True for i in range(n + 1)]
    p = 2
    while p * p <= n:
        if prime[p]:
            for i in range(p * 2, n + 1, p):
                prime[i] = False
        p += 1
    return prime


factorial_modP = []


def warm_up_fac(MOD):
    nonlocal factorial_modP, fac_warm_up
    if fac_warm_up: return
    factorial_modP = [1 for _ in range(fac_warm_up_size + 1)]
    for i in range(2, fac_warm_up_size):
        factorial_modP[i] = (factorial_modP[i - 1] * i) % MOD
    fac_warm_up = True


def InverseEuler(n, MOD):
    return pow(n, MOD - 2, MOD)


def nCr(n, r, MOD):
    nonlocal fac_warm_up, factorial_modP
    if not fac_warm_up:
        warm_up_fac(MOD)
        fac_warm_up = True
    return (factorial_modP[n] * (
            (pow(factorial_modP[r], MOD - 2, MOD) * pow(factorial_modP[n - r], MOD - 2, MOD)) % MOD)) % MOD


def get_int():
    return int(stdin.readline().strip())


def get_tuple():
    return list(map(int, stdin.readline().split()))


def get_list():
    return list(map(int, stdin.readline().split()))


memory = dict()


def clear_cache():
    nonlocal memory
    memory = dict()


def cached_fn(fn, *args):
    nonlocal memory
    if args in memory:
        return memory[args]
    else:
        result = fn(*args)
        memory[args] = result
        return result


def ncr(n, r):
    return math.factorial(n) / (math.factorial(n - r) * math.factorial(r))


def binary_search(i, li):
    fn = lambda x: li[x] - x // i
    x = -1
    b = len(li)
    while b >= 1:
        while b + x < len(li) and fn(b + x) > 0:  # Change this condition 2 to whatever you like
            x += b
        b = b // 2
    return x


# -------------------------------------------------------------- MAIN PROGRAM


TestCases = True
optimise_for_recursion = True  # Can not be used clubbed with TestCases WHen using recursive functions, use Python 3


def main():
    a, b, c, d, k = get_tuple()
    x = (a+c-1)//c
    y = (b+d-1)//d
    if x+y<=k:
        print(x, y)
    else: print(-1)
# --------------------------------------------------------------------- END=


if TestCases:
    for i in range(get_int()):
        main()
else:
    main() if not optimise_for_recursion else threading.Thread(target=main).start()


import math
for _ in range(int(input())):
    a,b,c,d,k = list(map(int,input().split(' ')))
    tot = 0
    a = math.ceil(a/c)
    b = math.ceil(b/d)
    if a+b<=k:
        print(a,b)
    else:print(-1)


 
MOD = 10**9 + 7
I = lambda:list(map(int,input().split()))
from math import *

t, = I()
while t:
	t -= 1
	a, b, c, d, k = I()
	for i in range(k+1):
		j = k-i
		if i*c >= a and j*d >= b:
			print(i, j)
			break
	else:
		print(-1)

from math import *
t=int(input())
for l in range(t):
	a,b,c,d,k=list(map(int,input().split()))
	val1=ceil(a/c)
	val2=ceil(b/d)
	if(val1+val2<=k):
		print(val1,val2)
	else:
		print(-1)


t = int(input())
for i in range(t):
    a, b, c, d, k = map(int, input().split())
    x = (a + c - 1) // c
    y = (b + d - 1) // d
    if x + y <= k:
        print(x, y)
    else:
        print(-1)

t = int(input())
for i in range(t):
    a, b, c, d, k = [int(i) for i in input().split()]
    if a % c == 0:
        x = a // c
    else:
        x = a // c + 1
    if b % d == 0:
        y = b // d
    else:
        y = b // d + 1
    if x + y <= k:
        print(x, y)
    else:
        print(-1)


t = int(input())
for _ in range(t):
    a, b, c, d, k = list(map(int, input().split()))
    x = (a + c - 1) // c
    y = (b + d - 1) // d

    if x + y <= k:
        print(x, y)
    else:
        print(-1)