1.
#include <iostream>
using namespace std;
int main ( )
{ int n,c,ct=0;
cin>>n;
while(n!=0)
{c=n%10;
n/=10;
ct++;
}
cout<<ct;
return 0;
}
2.
#include <iostream>
using namespace std;
int main ( )
{ int n,c, ctpare=0, ctimpare=0;
cin>>n;
while(n!=0)
{c=n%10;
n/=10;
if(c%2==0) ctpare++;
else ctimpare++;
}
cout<<ctpare<<" "<<ctimpare;
return 0;
}