N=int(raw_input()) z=map(int,raw_input().split()) print "%d/%d" % (z[N-1],z[0])