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