#include <math.h>
#include <stdio.h>
int jsj2(int a[]){
int jishu=0,oushu=0,i;
for(i=0;i<4;i++){
if(a[i]%2==0){
if(a[i]!=0 && a[i]>oushu) {oushu=a[i];
}
}else{
if(a[i]>jishu)
{jishu=a[i]; }
}
}
if(oushu!=0) return oushu;
else return jishu;
}
main(){
int b[4],max;
printf("please key 4 number:\n");
scanf("%d,%d,%d,%d",&b[0],&b[1],&b[2],&b[3]);
max=jsj2(b);
printf("max number is %d\n",max);
system("pause");
}