Cant figure out the rest .
package com.codegym.task.task06.task0606;
import java.io.*;
import java.util.*;
/*
Even and odd digits
*/
public class Solution {
public static int even;
public static int odd;
public static void main(String[] args) throws IOException {
Scanner sc = new Scanner(System.in);
int num = sc.nextInt();
if (num%2==0){
even++;
}else{
odd++;
}
System.out.println("Even: "+even+" Odd: "+odd);
}
}