Where is the mistake?
package pl.codegym.task.task07.task0706;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
/*
Ulice i domy
*/
public class Solution {
public static void main(String[] args) throws Exception {
//tutaj wpisz swój kod
int [] tab = new int [15];
BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
int parzyste=0;
int nieparzyste=0;
for(int i=0;i<tab.length;i++){
int a = Integer.parseInt(reader.readLine());
tab[i] = a;
if(i%2==0){
parzyste=parzyste+1;
}else{
nieparzyste=nieparzyste+1;
}
}
if(parzyste<=nieparzyste){
System.out.println("Więcej ludzi mieszka w domach o nieparzystych numerach.");
}else{
System.out.println("Więcej ludzi mieszka w domach o parzystych numerach.");
}
}
}