class S {
public int[][] T(int[][]A){
if(A.length==0) return A; int arr[][] = new int[A[0].length][A.length];
for(int i=0 ; i <