int total = 0; for ( int i = 0; i < count; ++i ) { total += root.add(i, i + 1); } System.out.println(total);
firstLoop(root, count);  secondLoop(root, count / 3);
	public static void main(String[] args)	{		int count = Integer.parseInt(args[0]);				SumContainer root = new SumContainer();		SumContainer middle1 = new SumContainer();		SumContainer middle2 = new SumContainer();		root.add(middle1);		root.add(middle2);		root.add(new SimpleSum());		SumContainer leaf = new SumContainer();		middle1.add(leaf);		leaf.add(new SimpleSum());		leaf.add(new SimpleSum());		middle2.add(new SimpleSum());		middle2.add(new SimpleSum());		middle2.add(new SimpleSum());		int total = 0;		for ( int i = 0; i < count; ++i )		{			total += root.add(i, i + 1);		}		System.out.println(total);	}