#include<iostream> using namespace std; int main() { int n,imp,par; cout<<"n="; cin>>n; par=imp=0; while(n>0) { if(n%2==0) par++; else imp++; n=n/10; } cout<<par<<" pare si "<<imp<<" impare"; return 0; }