package com.codegym.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 b = new BufferedReader(new InputStreamReader(System.in));
while(true){
String s = b.readLine();
int num = Integer.parseInt(s);
if(num % 2 == 0)
even++;
else
odd++;
}
System.out.println("Even: " + Solution.even + " " + " Odd: " + Solution.odd);
}
}
package com.codegym.task.task06.task0606;
import java.io.*;
import java.util.Scanner;
/*
Even and odd digits
*/
public class Solution {
public static int even;
public static int odd;
public static void main(String[] args) throws IOException {
//write your code here
BufferedReader b = new BufferedReader(new InputStreamReader(System.in));
while(true){
String s = b.readLine();
int num = Integer.parseInt(s);
if(num % 2 == 0)
even++;
else
odd++;
}
System.out.println("Even: " + Solution.even + " " + " Odd: " + Solution.odd);
}
}