#include using namespace std; #define rep(i,n) for(int i=0;i> N; int a[100]; rep(i, N) cin >> a[i]; int b = a[N-1]; rep(i, N - 1) b = gcd(a[i], b); int ans = 0; rep(i, N) ans += a[i] / b; cout << ans << endl; }