#include using namespace std; using ll = long long; using ld = long double; #define mod99 998244353 #define mod107 1000000007 #define endl "\n" #define rep(i,n) for (ll i = 0; i < (ll)(n); ++i) #define prep(i,a,n) for (ll i = a; i < n; ++i) #define all(a) a.begin(),a.end() #define rall(a) a.rbegin(), a.rend() #define si(x) ((ll)(x).size()) #define YN(bool) if(bool){cout<<"YES"< inline T gcd(T a,T b) {return (b==0)?a:gcd(b,a%b);} template inline T lcm(T a, T b) {return a/gcd(a,b)*b;} #define sq(x) ((x)*(x)) #define cube(x) ((x)*(x)*(x)) const ld PI=3.141592653589793238462643383279; const ll INF=1000000000000000000LL; string ABC = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"; string abc = "abcdefghijklmnopqrstuvwxyz"; #define next_p next_permutation template ll LB(vector &v,T a){return lower_bound(v.begin(),v.end(),a)-v.begin();} template ll UB(vector &v,T a){return upper_bound(v.begin(),v.end(),a)-v.begin();} bool isprime(ll N){ if(N<2) return false; for(ll i=2; i*i<=N; i++) if(N%i==0) return false; return true; } int main() { ios::sync_with_stdio(false); cin.tie(nullptr); ll n;cin >> n; vector a(n); rep(i,n) cin >> a[i]; ll memo=0; rep(i,n) memo+=a[i]; memo/=n; ll ans=0; rep(i,n) if(a[i]>=memo+100) ans++; cout << ans << endl; }