#include<bits/stdc++.h>
using namespace std;
#define ll long long
#define pb push_back
#define all(x) x.begin(),x.end()
#define FastIO ios::sync_with_stdio(0);cin.tie(0); cout.tie(0);
const ll N= 1e5+5;
ll cnt[N],ans;
int main(){
FastIO;
int Test=1;
//cin>>Test;
while(Test--){
ll n; cin>>n;
for(ll i=0;i<n;i++){
ll a; cin>>a;
cnt[a]++;
ans=max(ans,cnt[a]);
}
ans=max(ans,(n+1)/2);
cout<<ans<<endl;
}
return 0;
}
/*
*/
I2luY2x1ZGU8Yml0cy9zdGRjKysuaD4KdXNpbmcgbmFtZXNwYWNlIHN0ZDsKCiNkZWZpbmUgbGwgbG9uZyBsb25nCiNkZWZpbmUgcGIgcHVzaF9iYWNrCiNkZWZpbmUgYWxsKHgpIHguYmVnaW4oKSx4LmVuZCgpCiNkZWZpbmUgRmFzdElPIGlvczo6c3luY193aXRoX3N0ZGlvKDApO2Npbi50aWUoMCk7IGNvdXQudGllKDApOwoKY29uc3QgbGwgTj0gMWU1KzU7CmxsIGNudFtOXSxhbnM7CgppbnQgbWFpbigpewogICBGYXN0SU87CiAgIAogICBpbnQgVGVzdD0xOwogICAvL2Npbj4+VGVzdDsKICAgd2hpbGUoVGVzdC0tKXsKICAgICAgIGxsIG47IGNpbj4+bjsKICAgICAgIGZvcihsbCBpPTA7aTxuO2krKyl7CiAgICAgICAgbGwgYTsgY2luPj5hOwogICAgICAgIGNudFthXSsrOwogICAgICAgIGFucz1tYXgoYW5zLGNudFthXSk7CiAgICAgICB9CiAgICAgICBhbnM9bWF4KGFucywobisxKS8yKTsKCiAgICAgICBjb3V0PDxhbnM8PGVuZGw7CgogICAgICAgCiAgIH0KICAgcmV0dXJuIDA7Cn0KLyoKCiov
Main.java:1: error: illegal character: '#'
#include<bits/stdc++.h>
^
Main.java:1: error: class, interface, or enum expected
#include<bits/stdc++.h>
^
Main.java:4: error: illegal character: '#'
#define ll long long
^
Main.java:4: error: class, interface, or enum expected
#define ll long long
^
Main.java:5: error: illegal character: '#'
#define pb push_back
^
Main.java:6: error: illegal character: '#'
#define all(x) x.begin(),x.end()
^
Main.java:7: error: illegal character: '#'
#define FastIO ios::sync_with_stdio(0);cin.tie(0); cout.tie(0);
^
Main.java:7: error: class, interface, or enum expected
#define FastIO ios::sync_with_stdio(0);cin.tie(0); cout.tie(0);
^
Main.java:7: error: class, interface, or enum expected
#define FastIO ios::sync_with_stdio(0);cin.tie(0); cout.tie(0);
^
Main.java:9: error: class, interface, or enum expected
const ll N= 1e5+5;
^
Main.java:10: error: class, interface, or enum expected
ll cnt[N],ans;
^
Main.java:12: error: class, interface, or enum expected
int main(){
^
Main.java:15: error: class, interface, or enum expected
int Test=1;
^
Main.java:17: error: class, interface, or enum expected
while(Test--){
^
Main.java:18: error: class, interface, or enum expected
ll n; cin>>n;
^
Main.java:19: error: class, interface, or enum expected
for(ll i=0;i<n;i++){
^
Main.java:19: error: class, interface, or enum expected
for(ll i=0;i<n;i++){
^
Main.java:19: error: class, interface, or enum expected
for(ll i=0;i<n;i++){
^
Main.java:20: error: class, interface, or enum expected
ll a; cin>>a;
^
Main.java:21: error: class, interface, or enum expected
cnt[a]++;
^
Main.java:22: error: class, interface, or enum expected
ans=max(ans,cnt[a]);
^
Main.java:23: error: class, interface, or enum expected
}
^
Main.java:26: error: class, interface, or enum expected
cout<<ans<<endl;
^
Main.java:29: error: class, interface, or enum expected
}
^
Main.java:31: error: class, interface, or enum expected
}
^
25 errors