def gcd(A, B):
    while B > 0:
        A, B = B, A % B
    return A


N = int(input())
number_list = list(map(int, input().split()))
for i in range(1, len(number_list)):
    Q = gcd(number_list[0], number_list[i])
    print(str(number_list[0] // Q) + '/' + str(number_list[i] // Q))

eaced11aac40e0002fd968d88b28c2bd6d03215e
<mask token>

def gcd(A, B):
    while B > 0:
        A, B = B, A % B
    return A


<mask token>

def gcd(A, B):
    while B > 0:
        A, B = B, A % B
    return A


<mask token>
for i in range(1, len(number_list)):
    Q = gcd(number_list[0], number_list[i])
    print(str(number_list[0] // Q) + '/' + str(number_list[i] // Q))

def gcd(A, B):
    while B > 0:
        A, B = B, A % B
    return A


N = int(input())
number_list = list(map(int, input().split()))
for i in range(1, len(number_list)):
    Q = gcd(number_list[0], number_list[i])
    print(str(number_list[0] // Q) + '/' + str(number_list[i] // Q))
