public static void main(String[] args) {
		Random gen = new Random();
		for (int times = 0; times < 1000; ++times) {
			int[] C;
			if (args.length >= 1) {
				C = new int[args.length - 1];
				for (int i = 0; i < args.length; ++i) {
					C[i] = Integer.valueOf(args[i]);
				}
			} else {
				C = new int[gen.nextInt(1000)];
				for (int i = 0; i < C.length; ++i) {
					C[i] = gen.nextInt(100);
				}
			}

			simplePrint(C);
			System.out.println();

			int res = pick_up_coins(C);
			System.out.println(res);
			check(C, res);
		}
	}