public class Solution { public static int even; public static int odd; public static int Kolichestvo(int i) { int in=0; while (i!=0){ i = i div 10; in++; } return in; } public static void sut(int i, int in) { even = 0; odd = 0; while(in!=0){ if (i mod 2==0) even++; else odd++; in--; } println("Even: "+even+" Odd: "+odd); } public static void main(String[] args) throws IOException { BufferedReader reader = new BufferedReader(new InputStreamReader(System.in)); int i = Integer.parseInt(reader.readLine());//напишите тут ваш код int in = Kolichestvo(i); sut(i,in); } }