public static void Main()
int n = int.Parse(Console.ReadLine());
int m = int.Parse(Console.ReadLine());
int[,] matrix = new int[n, m];
for(int row = 0; row < n; row++)
for(int col = 0; col < m; col++)
matrix[row, col] = int.Parse(Console.ReadLine());
for(int rows =0; rows < matrix.GetLength(0); rows++)
for(int cols = 0; cols < matrix.GetLength(1); cols++)
Console.Write(matrix[rows, cols]);
for(int row = 0; row < n; row++)
for(int col = 0; col < m; col++)
Console.Write("{0, 8}", matrix[row, col]);
for(int row = 0; row < n; row++)
for(int col = 0; col < m; col++)
Console.Write("{0, 8}", matrix[row, col]);