#include #define N 1000000007 #define maxs 100005 #define mins 1005 #define pf printf #define sc scanf #define ll long long #define pb push_back using namespace std; ll power(ll a,ll b) { ll t=1; while(b>0){ if(b&1){ t=t*a; } a=a*a; b>>=1; } return t; } ll modpow(ll a,ll b,ll c) { ll t=1; while(b>0){ if(b&1){ t=((t%c)*(a%c))%c; } a=((a%c)*(a%c))%c; b>>=1; } return t; } int cnt[102]; int main() { int n; cin>>n; int i,x; for(i=0;i>x; cnt[x]++; } int max1=-1; for(i=1;i<=98;i++){ max1=max(max1,cnt[i]+cnt[i+1]); } cout<