This will output the correct answer for the test input in the conditions and anything else I have thrown into it. I take into account possible negative numbers entered by the user, and it outputs the correct answer, but I keep getting told the "displayed text must match the task conditions." The commented out lines on the bottom also apparently will not match the task conditions. The displayed text looks like the task conditions, I even copied and pasted it into the solution to make sure I'm not missing spaces or anything. What is it that I am not seeing?

package com.codegym.task.task06.task0606;
import java.io.*;
/*
Even and odd digits
*/
public class Solution {
public static int even;
public static int odd;
public static void main(String[] args) throws IOException {
BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
String strN = reader.readLine();
int n = Integer.parseInt(strN);
if (n < 0) n *= -1;
for (int i = 1; i < n; i *= 10) {
int m = n / i;
if (m % 2 == 0)
even++;
else
odd++;
}
//System.out.print("Even: " + even + " " + "Odd: " + odd);
//System.out.println("Even: " + even + " " + "Odd: " + odd);
//System.out.print("Even: " + even + " Odd: " + odd);
System.out.println("Even:" + " " + even + "Odd:" + " " + odd);
//System.out.println("Even: " + even + " Odd: " + odd);
}
}

First time through the for loop:m = 4445 / 1, which is 4445, then i check if the number is odd or even (odd, and add it to the appropriate count)Second time through:i now equals 10 so m = 4445 / 10, which in integer division in Java is 444, check if that's odd or even, etc.Third time:i = 100, m = 4445 / 100, which is 44Fourth:i = 1000, m = 4445 / 1000, which is 4. After the fourth time, the for loop exits because 1000 * 10 is greater than n (4445). I hope that helps.