#!/usr/bin/python from fractions import Fraction from operator import mul from itertools import izip, tee def pairwise(iterable): a, b = tee(iterable) next(b, None) return izip(a, b) raw_input() print reduce(mul, map(lambda (x, y): Fraction(y, x), pairwise(map(int, raw_input().split()))))