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 a = Integer.parseInt(br.readLine());
while (true){
if(a % 2 == 0){
even++;
}else {
odd++;
}
a /= 10;
}
System.out.println("Even: " + even + " Odd: " + odd);
}
}
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 a = Integer.parseInt(br.readLine());
while (true){
if(a % 2 == 0){
even +=1;
}else if (a % 2 != 0){
odd +=1;
}else if(a == 0){
break;
}
}System.out.println("Even: " + even + " Odd: " + odd);
}
}