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