все правильно работает но валидатор не пускает почему то
package com.javarush.task.task18.task1808;
/*
Разделение файла
*/
import java.io.*;
public class Solution {
public static void main(String[] args) throws IOException {
BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
FileInputStream text1Input = new FileInputStream(reader.readLine());
FileOutputStream text2Output = new FileOutputStream(reader.readLine());
FileOutputStream text3Output = new FileOutputStream(reader.readLine());
int fullSize = text1Input.available();
if (fullSize % 2 == 0) {
while (text1Input.available() > (fullSize / 2)) {
int read = text1Input.read();
text2Output.write(read);
}
} else {
while (text1Input.available() > (fullSize / 2) - 1) {
int read = text1Input.read();
text2Output.write(read);
}
}
while (text1Input.available() > 0) {
int read = text1Input.read();
text3Output.write(read);
}
reader.close();
text1Input.close();
text2Output.close();
text3Output.close();
}
}