#include "stdio.h"
int main()
{
int count1=0,count2=0,i;
while(1)
{
scanf("%d",&i);
if(i==-1)
break;
else if(i%2==0)
count1++;
else if(i%2==1)
count2++;
}
printf("奇数共有%d个,偶数共有%d个.\n",count2,count1);
}
#include "stdio.h"
int main()
{
int count1=0,count2=0,i;
while(1)
{
scanf("%d",&i);
if(i==-1)
break;
else if(i%2==0)
count1++;
else if(i%2==1)
count2++;
}
printf("奇数共有%d个,偶数共有%d个.\n",count2,count1);
}