#include "bits/stdc++.h" using namespace std; long long gcd(long long a, long long b) { if (b == 0) return a; return gcd(b, a%b); } long long lcm(long long a, long long b) { long long g = gcd(a, b); return a / g * b; } int n, k[105], ans, mon; int main() { cin >> n; for (int i = 0; i < n; ++i) { cin >> k[i]; if (i == 1) { mon = gcd(k[0], k[1]); } else if (i != 0) { mon = gcd(mon, k[i]); } } for (int i = 0; i < n; ++i) { ans += k[i] / mon; } cout << ans << endl; }