public static void main(String[] args) {
		for(int i = 0; i < L.length; i++) 
			for(int j = 0; j < L[0].length; j++) 
				if(L[i][j] == 'w') {
					Sum++;
					dfs(i, j);
				}
		
		System.out.println("sum is " + Sum);
	}