package com.javarush.task.task06.task0606;
/*
Чётные и нечётные циферки
*/
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
public class Solution {
public static BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
public static int even;
public static int odd;
public static void main(String[] args) throws IOException {
int x = Integer.parseInt(reader.readLine());
while(x!=0){
if((x%10)%2==0)
even++;
else
if((x%10)%2!=0)
odd++;
x/=10;
}
System.out.println("Even: "+even+" Odd: "+odd);
}
}
package com.javarush.task.task06.task0606;
/*
Чётные и нечётные циферки
*/
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
public class Solution {
public static BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
public static int even;
public static int odd;
public static void main(String[] args) throws IOException {
int x = Integer.parseInt(reader.readLine());
while(x!=0){
if((x%10)%2==0 && x%10!=0)
even++;
else
if((x%10)%2!=0)
odd++;
x/=10;
}
System.out.println("Even: "+even+" Odd: "+odd);
}
}