#!/usr/bin/env python from fractions import Fraction n = int(input()) l = [int (i) for i in input().split()] print(str(l[-1]) + "/" + str(l[0]))