package com.codegym.task.task07.task0706; import; import; import; /* Streets and houses */ public class Solution { public static void main(String[] args) throws Exception { //write your code here int[]array=new int[15]; BufferedReader reader=new BufferedReader(new InputStreamReader(; for (int i=0;i<array.length;i++) { String s=reader.readLine(); array[i]=Integer.parseInt(s); } int even=0; int odd=0; for (int i=0;i<array.length;i++) { if(i%2==0) even+=array[i]; else odd+=array[i]; } if (even>odd) { System.out.println("Even-numbered houses have more residents."); } else { System.out.println("Odd-numbered houses have more residents"); } } }