public class Solution { public static void main(String[] args) throws Exception { //write your code here int[] a = new int[15]; int sum1=0; int sum2=0; BufferedReader reader = new BufferedReader(new InputStreamReader(; for(int i=0;i<15;i++){ a[i] = Integer.parseInt(reader.readLine()); } for(int i=0;i<15;i++){ sum1 = sum1 + a[i]; i++; } System.out.println(sum1); for(int i=1;i<15;i++){ sum2 += a[i]; i++; } System.out.println(sum2); if(sum2>sum2){ System.out.println("Even-numbered houses have more residents."); }else System.out.println("Odd-numbered houses have more residents."); } }