/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ /** * * @author Dell */ import java.util.*; public class EqualStack { // System.out.println(sum1 + ""+sum2 + "" +sum3); public static void main(String[] args){ Scanner in = new Scanner(System.in); int n1 = in.nextInt(); int n2 = in.nextInt(); int n3 = in.nextInt(); Stack stack1 = new Stack(); Stack stack2 = new Stack(); Stack stack3 = new Stack(); //filling elements in the array and calculating sum of the elements int h1 = 0; int[] h1Array = new int[n1]; for(int h1_i=0; h1_i