#include <iostream>
using namespace std;
int main()
{
int a, copie=0, par=0, impar=0;
cout<<"a = "; cin>>a;
copie = a;
while(copie!=0)
{
if ( (copie%10) % 2 == 0 )
par++;
else
impar++;
copie/=10;
}
if ( a == 0 )
cout<<"Numarul a contine o singura cifra para";
else
cout<<"Numarul "<<a<<" are "<<par<<" cifre pare si "<<impar<<" cifre impare";
}