N = int(input()) A = list(map(int,input().split())) print(f"{A[-1]}/{A[0]}")