N = input() Z = map(float, raw_input().split()) theta = 1 for i in xrange(N-1): theta = theta * Z[i] / Z[i+1] print '1'+'/'+str(theta)