....

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 {
//write your code here
BufferedReader reader = new BufferedReader (new InputStreamReader(System.in));
int n = Integer.parseInt(reader.readLine());
if (n < 0) n *= -1;{
for (int i = 1; i < n; i *= 10) {
int m = n / i;
if (m % 2 == 0)
even++;
else
odd++;
}
}
System.out.println("Even:"+" "+even+" "+"Odd:"+" "+odd);
}
}