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