почему валидатор не принимает?
package com.javarush.task.pro.task05.task0505;
import java.util.Scanner;
/*
Reverse
*/
public class Solution {
public static void main(String[] args) {
Scanner key = new Scanner (System.in);
int a = key.nextInt();
int[] b = new int[5];
int i;
for (i=0; i<5; i++){
b[i] = key.nextInt();
}
if ((a%2)==0)
for(i=4; i>(-1);i--){
System.out.println(b[i]);
}
else
for(i=0;i<5;i++){
System.out.println(b[i]);
}
}
}