#include
using namespace std;
void main()
{ int x[256],i,n,j,k,b; scanf("%d",&n); if ( n<0 ) n=0; else if ( n>256 ) n=256; for ( i=0;i for ( i=0,k=0;i { b=1; for ( j=0;j if ( b ) { x[k]=x[i]; k++; } } for ( i=0;i for ( j=i+1;j if ( x[i] { b=x[i]; x[i]=x[j]; x[j]=b; } for ( i=0;i }
}