The output is correct, however, I miss conditions 2, 3, and 5.

package com.codegym.task.task06.task0606;
import java.io.*;
/*
Even and odd digits
*/
public class Solution {
public static int odd;
public static int even;
public static void main(String[] args) throws IOException {
//write your code here
BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
String sNumin = reader.readLine();
int numin = Integer.parseInt(sNumin);
int numout;
int mod;
int x;
int y;
for(x=10000;x>=1;x=x/10)
{
numout=numin%x;
mod =numin-numout;
y=x*2;
if(mod%y==0)
{
even=(even+1);
}
else if(mod>=x)
{
odd=(odd+1);
}
}
System.out.println("Even: " + even + " Odd: " +odd);
}
}