не проходит последнее условие: (выводимый текст не соответсвует...)
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));
int a = Integer.parseInt(reader.readLine());
int ost=a%10;
int next=a;
for (;next>1;) {
if (ost%2==0) even++;
else odd++;
next = next/10;
ost = next%10;
}
System.out.println("Even: " + even + " Odd: "+ odd );
}
}