#!/usr/bin/python from operator import mul from fractions import Fraction from itertools import izip, tee class MyFraction(Fraction): from operator import add, sub, mul, div def __add__(self, other): return MyFraction(reduce(add, map(Fraction, (self, other)))) def __radd__(self, other): return MyFraction(reduce(add, map(Fraction, (other, self)))) def __sub__(self, other): return MyFraction(reduce(sub, map(Fraction, (self, other)))) def __rsub__(self, other): return MyFraction(reduce(sub, map(Fraction, (other, self)))) def __mul__(self, other): return MyFraction(reduce(mul, map(Fraction, (self, other)))) def __rmul__(self, other): return MyFraction(reduce(mul, map(Fraction, (other, self)))) def __div__(self, other): return MyFraction(reduce(div, map(Fraction, (self, other)))) def __rdiv__(self, other): return MyFraction(reduce(div, map(Fraction, (other, self)))) def __pow__(self, other): return MyFraction(reduce(pow, map(Fraction, (self, other)))) def __rpow__(self, other): return MyFraction(reduce(pow, map(Fraction, (other, self)))) def __str__(self): return '{}/{}'.format(self.numerator, self.denominator) def __repr__(self): return 'MyFraction {}/{}'.format(self.numerator, self.denominator) def pairwise(iterable): a, b = tee(iterable) next(b, None) return izip(a, b) raw_input() print reduce(mul, map(lambda (x, y): MyFraction(y, x), pairwise(map(int, raw_input().split()))))