Hakerrank Problem

T = int(input())
list = [[input().split()] for i in range(0, T)]

for i in range(0, T):
    try:
        print(int(list[i][0][0])//int(list[i][0][1]))
    except ZeroDivisionError as e:
        print("Error Code:", e)
    except ValueError as e:
        print("Error Code:", e)