/* package whatever; // don't place package name! */

import java.util.*;
import java.lang.*;
import java.io.*;

/* Name of the class has to be "Main" only if the class is public. */
class Ideone
{
	public static void main (String[] args) throws java.lang.Exception
	{
	int arg[][] = {
        {26, 39, 3, 13},
        {22, 97, 17, 123},
        {46, 19, 63, 123},
        {1, 37, 90, 32},
        {17, 37, 90, 32}};
        try{
        	
        	for (int i = arg[0].length - 1; i >= 0; i--) {
        for (int j = 0; j < arg.length ; j++) {
            for (int k = 0; k < arg[j].length-1 ; k++) {
            	// System.out.print(""+k+ " "+j);
                if (arg[j][k] > arg[j][k + 1]) {
                    int temp = arg[j][k];
                    arg[j][k] = arg[j][k + 1];
                    arg[j][k + 1] = temp;

                }
            }
           // System.out.println();
        }
    }

    for (int i = 0; i < arg.length; i++) {
        for (int j = 0; j < arg[i].length; j++) {
            System.out.print(arg[i][j] + " ");
        }
        System.out.println();
    }
        }catch(Exception e){
        	System.out.println(e);
        }
	}
}