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