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