?
package com.javarush.task.task06.task0606;
import java.io.*;
/*
Чётные и нечётные циферки
*/
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 sa = Integer.parseInt(s);
int c = sa;
int f = 1;
for(int i = 0; i < f; i++){
int a = c % 10;
int b = c/10;
System.out.println(b);
c = b;
System.out.println(c);
if(a%2 == 0){
even = even +1;
}else odd = odd+1;
f++;
if (c <= 0) break;
}
System.out.print("Even:"+even+" Odd: " + odd);
}
}