from math import gcd N = int(input()) Z = list(map(int, input().split())) g = gcd(Z[0], Z[N - 1]) print(str(Z[N - 1] // g) + "/" + str(Z[0] // g))