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 bufferedReader= new BufferedReader(new InputStreamReader(System.in)); String sNum= bufferedReader.readLine(); int nNum=Integer.parseInt(sNum); int l=sNum.length(); int a[]= new int[l]; int i=0; a[i]= nNum; for (i=0;i<l;i++) { if (a[i] % 2 == 0) { even++; } else odd++; } System.out.println("Even: "+even+" Odd: "+odd); System.out.println(l); } }