#!/usr/bin/env python3 n = int(input()) z = list(map(int,input().split())) print('{}/{}'.format(z[-1], z[0]))