n=input() z=map(float,raw_input().split()) x=1 for i in range(n-1): x=x*z[i]/z[i+1] #print x print `int(1/x*z[0])`+"/"+`int(z[0])`