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