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