#includelt;stdio.hgt;
int main(){
int a[100],n,i,min,max,s;
scanf("d",amp;n);
if(n gt; 0){
scanf("d",amp;a[0]);
min = max = s = a[0];
}
for(i = 1; i lt; n; i++){
scanf("d",amp;a[i]);
s += a[i];
if(a[i] lt; min) min = a[i];
if(a[i] gt; max) max = a[i];
}
printf("n1: ");
for(i = 0; i lt; n; i++)
if(a[i]*2 gt; min + max)
printf("d ",a[i]);
printf("n2: ");
for(i = 0; i lt; n; i++)
if(a[i]*n lt; s)
printf("d ",a[i]);
printf("n3: ");
for(i = 0; i lt; n; i++)
if(a[i]5 == 0)
printf("d ",a[i]);
return 0;
}