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