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