import std.algorithm; import std.array; import std.conv; import std.math; import std.stdio; import std.string; import std.range; int readint() { return readln.chomp.to!int; } int[] readints() { return readln.split.map!(to!int).array; } long gcd(long n, long m) { if (m == 0) return n; return gcd(m, n % m); } void main() { int n = readint(); int[] xs; for (int i = 0; i < n; i++) { xs ~= readint(); } long g = xs.fold!gcd; writeln(100 / g); }