package com.javarush.task.task06.task0606;
import java.util.*;
/*
Чётные и нечётные циферки
*/
public class Solution {
public static int even;
public static int odd;
public static void main(String[] args) throws IOException {
Scanner scan = new Scanner(System.in);
even = 0;
odd = 0;
int b = scan.nextInt();
for(int i = 0; i<100;i++)
{
if(b<=0)break;
if(b%10/2==0)
even++;
if(b%10!=0)
odd++;
b/=10;
}
System.out.println("Even: " + even + " Odd: " + odd);
}
@Override
protected void finalize() throws Throwable {
}
}
package com.javarush.task.task06.task0606;
import java.util.*;
/*
Чётные и нечётные циферки
*/
public class Solution {
public static int even;
public static int odd;
public static void main(String[] args) throws IOException {
Scanner scan = new Scanner(System.in);
even = 0;
odd = 0;
int b = scan.nextInt();
for(int i = 0; i<100;i++)
{
if(b<=0)break;
if(b%10/2==0)
even++;
if(b%10!=0)
odd++;
b/=10;
}
System.out.println("Even: " + even + " Odd: " + odd);
}
@Override
protected void finalize() throws Throwable {
}
}