N=int(input())
Z=list(map(int,input().split()))
print("{}/{}".format(Z[-1],Z[0]))