IT WORKS but compiler does not excepts. Please help

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 number = Integer.parseInt(reader.readLine());
int length = String.valueOf(number).length();
int[] numbers = new int[length];
int odd = 0;
int even = 0;
for (int i = 0; number > 0; i++) {
numbers[i] = number%10;
number = number / 10;
}
for (int i = 0; i < numbers.length; i++) {
if(numbers[i]%2==0) even++; else odd++;
}
int a = even;
int b = odd;
System.out.println("Even: " + a + " Odd: " + b);
}
}