#include <iostream>
using namespace std;
int main(){
int n, pare=0, impare=0;
cout<<"Dati n=";cin>>n;
while(n!=0) {
if(n%2==0) {
pare++;
} else {
impare++;
}
cout<<"Dati n=";cin>>n;
}
cout<<"Ai introdus "<<pare<<" numere pare si "<<impare<<" numere impare";
return 0;
}