the last condition fails why??
package com.codegym.task.task04.task0427;
/*
Describing numbers
*/
import java.io.*;
public class Solution {
public static void main(String[] args) throws Exception {
BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
int a = Integer.parseInt(reader.readLine());
if (a < 10 && a % 2 == 0) {
System.out.println("even single-digit number");
}
if (a < 10 && a % 2 != 0) {
System.out.println("odd single-digit number");
}
if (a >= 10 && a < 100 && a % 2 == 0) {
System.out.println("even two-digit number");
}
if (a >= 10 && a < 100 && a % 2 != 0) {
System.out.println("odd two-digit number");
}
if (a >= 100 && a <= 999 && a % 2 == 0) {
System.out.println("even three-digit number");
}
if (a >= 100 && a <= 999 && a % 2 != 0) {
System.out.println("odd three-digit number");
}
}
}