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