from fractions import Fraction N = int(input()) Z = list(map(int, input().split())) a = Fraction(Z[N-1], Z[0]); print(str(a.numerator)+"/"+str(a.denominator))