I checked spacing and everything. Copied and pasted the text straight from the conditions.
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 br = new BufferedReader(new InputStreamReader(System.in));
int input = Integer.parseInt(br.readLine());
while(input > 1) {
if (input % 2 == 0) {
even++;
} else {
odd++;
}
input /= 10;
}
br.close();
System.out.println("Even: " + even + " Odd: " + odd);
}
}