package com.codegym.task.task06.task0606;
import java.io.*;
/*
Even and odd digits
*/
public class Solution {
public static int even;
public static int odd;
public static void main(String[] args) throws IOException {
BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
String s = reader.readLine();
int number = Integer.parseInt(s);
for(int i = 10; number>i/10;i=i*10)
{
if(((number%i)/(i/10))%2==0)
even = even + 1;
else
odd = odd + 1;
}
int a = even;
int b = odd;
System.out.println("Even: " + a + " Odd: " + b);
}
}

package com.codegym.task.task06.task0606;
import java.io.*;
/*
Even and odd digits
*/
public class Solution {
public static int even;
public static int odd;
public static void main(String[] args) throws IOException {
BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
String s = reader.readLine();
int number = Integer.parseInt(s);
for(int i = 10; number>i/10;i=i*10)
{
if(((number%i)/(i/10))%2==0)
even = even + 1;
else
odd = odd + 1;
}
int a = even;
int b = odd;
System.out.println("Even: " + a + " Odd: " + b);
}
}