# -*- coding: utf-8 -*-
qntd = int(input())

for i in range(qntd):
    valores = list(map(int,input().split(" ")))
    n1, n2 = valores
    if n2 != 0:
        print(n1 / n2)
    else:
        print("divisao impossivel")
eed6fd8047bebbf649e779d12c992cde69fdfe0f
<mask token>

<mask token>
for i in range(qntd):
    valores = list(map(int, input().split(' ')))
    n1, n2 = valores
    if n2 != 0:
        print(n1 / n2)
    else:
        print('divisao impossivel')

qntd = int(input())
for i in range(qntd):
    valores = list(map(int, input().split(' ')))
    n1, n2 = valores
    if n2 != 0:
        print(n1 / n2)
    else:
        print('divisao impossivel')

# -*- coding: utf-8 -*-
qntd = int(input())

for i in range(qntd):
    valores = list(map(int,input().split(" ")))
    n1, n2 = valores
    if n2 != 0:
        print(n1 / n2)
    else:
        print("divisao impossivel")