public static void main(String[] args) {
		//int[] p = {30,35,15,5,10,20,25};//ϵ
		int[] p = {5,10,3,12,5,50,6};
		int n =p.length-1;
		int m[][] = new int [n][n];
		int s[][] = new int [n][n];
		matrixChainOrder(p, m, s);
		printOptimal(s, 0, n-1);
	}