#include<stdio.h> int main() { int n; int oushu=0; int jishu=0; while(scanf("%d",&n)) { if (n==-1) break; if(n%2==0) { oushu++; } else { jishu++; } } printf("%d %d ",jishu,oushu); return 0; }
#include<stdio.h> int main() { int n; int oushu=0; int jishu=0; while(scanf("%d",&n)) { if (n==-1) break; if(n%2==0) { oushu++; } else { jishu++; } } printf("%d %d ",jishu,oushu); return 0; }