from math import gcd n = int(input()) Z = list(map(int, input().split())) a = Z[0] b = Z[-1] g = gcd(a, b) a //= g b //= g print(f"{b}/{a}")