n = int(input()) l = list(map(int, input().split())) print(str(l[-1]) + "/" + str(l[0]))