import math n, k = map(int,input().split()) a = list(map(int,input().split())) l = 6350400 p = q = 0 for i in range(k - 1): p += l // (a[i] * a[i + 1]) for i in range(n - 1): q += l // (a[i] * a[i + 1]) l = math.gcd(p, q) p //= l q //= l print(str(p) + '/' + str(q))