#include <stdio.h>
#define MAX 200
int a[MAX],b[MAX],cnt=0;
void writeDat();
void jsVal()
{
	void jsVal()
	{ int i,j;
	int a1,a2,a3,a4;
	int ab,cd;
	int temp;
	for(i=0;i<MAX;i++)
	{
		a1=a[i]%10;
		a2=a[i]%100/10;
		a3=a[i]%1000/100;
		a4=a[i]/1000;
		ab=a4*10+a2;
		cd=a1*10+a3;
		if(ab-cd>=0&&ab-cd<=10&&ab%2==1&&cd%2==1&&a4!=0&&a1!=0)
			b[cnt++]=a[i];
	}
	for(i=0;i<cnt-1;i++)
		for(j=i+1;j<cnt;j++)
			if(b[i]<b[j])
			{ temp=b[i];
			b[i]=b[j];
			b[j]=temp;
			}
	}
	void readDat()
	{
		int i;
		FILE *fp;
		fp=fopen("in.dat","r");
		for(i=0;i<MAX;i++)
			fscanf(fp,"%d",&a[i]);
		fclose(fp);
	}
	void main()
	{int i;
	 readDat();
	 jsVal();
	 printf("满足条件的数=%d\n",cnt);
	 for(i=0;i<cnt;i++)
		 printf("%d",b[i]);
	 printf("\n");
	 writeDat();
	}
	void writeDat()
	{
		FILE *fp;
		int i;
		fp=fopen("out.dat","w");
		fprintf(fp,"%d\n",cnt);
		for(i=0;i<cnt;i++)
			fprintf(fp,"%d\n",b[i]);
		fclose(fp);
	}