package com.codegym.task.task04.task0420;
/*
Sorting three numbers
*/
import java.util.Scanner;
import java.io.*;
public class Solution {
public static void main(String[] args) throws Exception {
Scanner scan = new Scanner(System.in);
int a = scan.nextInt();
int b = scan.nextInt();
int c = scan.nextInt();
System.out.println(giveMax(a,b,c) + " " + giveOpt(a,b,c) + " " + giveMin(a,b,c));
}
public static int giveMin(int a, int b, int c){
int a1 = Math.min(a, b);
int b1 = Math.min(a1, c);
return b1;
}
public static int giveMax(int a, int b, int c){
int a2 = Math.max(a, b);
int b2 = Math.max(a2, c);
return b2;
}
public static int giveOpt(int a, int b, int c){
int a3 = 0;
if(a >= b && a <= c){
a3 = a;
} else if (b >= a && b <= c){
a3 = b;
} else if (c >= a && c <= b){
a3 = c;
}
return a3;
}
}

package com.codegym.task.task04.task0420;
/*
Sorting three numbers
*/
import java.util.Scanner;
import java.io.*;
public class Solution {
public static void main(String[] args) throws Exception {
Scanner scan = new Scanner(System.in);
int a = scan.nextInt();
int b = scan.nextInt();
int c = scan.nextInt();
System.out.println(giveMax(a,b,c) + " " + giveOpt(a,b,c) + " " + giveMin(a,b,c));
}
public static int giveMin(int a, int b, int c){
int a1 = Math.min(a, b);
int b1 = Math.min(a1, c);
return b1;
}
public static int giveMax(int a, int b, int c){
int a2 = Math.max(a, b);
int b2 = Math.max(a2, c);
return b2;
}
public static int giveOpt(int a, int b, int c){
int a3 = 0;
if(a >= b && a <= c){
a3 = a;
} else if (b >= a && b <= c){
a3 = b;
} else if (c >= a && c <= b){
a3 = c;
}
return a3;
}
}