private int calc(int y,int x)
	{
		int ins = matrix[y][x-1][0] +effort[1];
		int del = matrix[y-1][x][0]+effort[0];
		int dia = matrix[y-1][x-1][0];
		if(s1[x-1]!=s2[y-1])
		{
			dia += effort [2];
		}
		//System.out.println(del+":"+ins+":"+dia);
		if(del<=ins && del<=dia)
		{
			matrix[y][x][1]=1;
			return del;
		}
		if(ins<=del && ins<=dia)
		{
			matrix[y][x][2]=1;
			return ins;
		}
		else
		{
			matrix[y][x][3]=1;
			return dia;
		}
	}