# frozen_string_literal: true def solve 100 / A.map(&:gcd) end N = gets.to_i A = N.times.map { gets.to_i } puts solve