package com.javarush.task.task04.task0420; /* Сортировка трех чисел */ import java.io.*; import java.util.*; public class Solution { public static void main(String[] args) throws Exception { BufferedReader reader =new BufferedReader(new InputStreamReader(System.in)); String s1 = reader.readLine(); String s2 = reader.readLine(); String s3 = reader.readLine(); int a = Integer.parseInt(s1); int b = Integer.parseInt(s2); int c = Integer.parseInt(s3); int min=0; int mid=0; int max=0; if (a > b) { max = a; a=b; b =max; } if (b > c) { max = b; b=c; c=max; } if (a > b) { max = a; a=b; b =max; } System.out.print(c + " "+b+" " +a); } }