int main()
{
FILE *fp;
int a[500];
int i=0,j;
int t;
fp = fopen("in.txt", "r");
while(fscanf(fp,"%d",&t)!=EOF && t>0)
{
for(j = i-1; j>=0; j --)
if(a[j]>=t)break;
else a[j+1]=a[j];
a[j+1]=t;
}
for(j = 0; j < i; j ++)
if(a[j]%2==1)
printf("%d %d\n",j, a[j]);
fclose(fp);
return 0;
}