# frozen_string_literal: true def solve A.map { |a| Rational(a, 100).denominator }.reduce(&:lcm) end N = gets.to_i A = N.times.map { gets.to_i } puts solve