# coding:utf-8 N = int(input()) z = list(map(int, input().split())) a = 1 b = 1 for i in range(N-1): a*=z[i] b*=z[i+1] print("%d/%d" % (b, a))