#define N 9999991 int main(){ int a[10000000]={},s=0,n,i; scanf("%d",&n); for(;~scanf("%d",&n);)a[n%N]++; for(i=0;i