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