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