function Main(input) {
    input = input.split("\n");
    for (i=0; i < input.length-1; i++) {
        tmp = input[i].split(" ")
        var a = tmp[0]
        var b = tmp[1]
        var c = tmp[2]
        var num = []
        num.push(a, b, c)
        num.sort()
        console.log(num[0], num[1], num[2])
    }
}

Main(require("fs").readFileSync("/dev/stdin", "utf8"));
