N = int(input()) Z = list(map(int, input().split())) print(str(Z[-1]) + '/' + str(Z[0]))