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) { long r = n % m; while (r != 0) { n = m; m = r; r = n % m; } return n; } void main() { int n = readint(); int[] xs; for (int i = 0; i < n; i++) { xs ~= readint(); } long g = xs.fold!gcd; writeln(100 / g); }