public class Text_1 {
public static void main(String[] args) {
// int n = 5;
int num = 0;
int count = 0;
int count_hui = 0;
for (int a = 0; a <= 7; a++) { for (int b = 0; b <=7 ; b++) {
for (int c = 0; c <= 7; c++) {
for (int d = 0; d <= 7; d++) {
for (int e = 0; e <= 7; e++) {
num = e+d*10+c*100+b*1000+a*10000;
if(num%2!=0){
count++;
}
}
}
}
}
}
for (int a = 0; a <= 7; a++) {
for (int b = 0; b <= 7; b++) {
for (int c = 0; c <= 7; c++) {
num = a+b*10+c*100;
if(num%2!=0){
if(a==c){
count_hui++;
}
}