#include
#define N 10
void delete_max(int a[])
{
int i, m;
m = 0;
for(i=1;i{
if(a[m] < a[i])
m = i;
}
printf("the max is : %d\n", a[m]);
for(i=m+1;i{
a[i-1]=a[i];
}
return;
}
int main(void)
{
int a[N];
int i;
for(i=0;iscanf("%d", &a[i]);
delete_max(a);
for(i=0;iprintf("%d ", a[i]);
return 0;
}