public static void main(String[] args) {
		// TODO Auto-generated method stub
//		String[] prices = new String[] { "100 100 100" };
//		String[] purchases = new String[] { "0,0:0", "0,2:5", "0,1:10" };
////		
//		String[] prices = new String[]{"100 200 300 400 500 600"};
//		String[] purchases = new String[]  {"0,2:0", "0,3:5", "0,1:10", "0,4:15"};
		


		String[] prices = new String[] 
				{"100 200 300",
				 "600 500 400"};
		String[] purchases = new String[]
				{"0,0:0", "1,1:10", "1,2:20",
				 "0,1:21", "1,0:22", "0,2:35"};
		System.out.println(new VendingMachine().motorUse(prices, purchases));
		
		//System.out.println(new VendingMachine().getSec(5, 5, 6));
	}