_ = int(input()) Z = input().split() print('{}/{}'.format(Z[-1], Z[0]))