mport java.io.*; import java.util.*; public class Solution{ public static void main (String[] args){ Scanner scan = new Scanner(System.in); int a = scan.nextInt(); int b = scan.nextInt(); int c = scan.nextInt(); if(a!=b&&a!=c){ if(a>b&&a>c)System.out.print(a+" "); else if(b>a&&b>c)System.out.print(b+" "); else if(c>a&&c>b)System.out.print(c+" "); if(a>b&&a<c||a<b&&a>c)System.out.print(a+" "); else if(b>a&&b<c||b<a&&b>c)System.out.print(b+" "); else if(c>a&&c<b||c<a&&c>b)System.out.print(c+" "); if(a<b&&a<c)System.out.print(a); else if(b<a&&b<c)System.out.print(b); else if(c<a&&c<b)System.out.print(c); } } if(a==b==c)System.out.print(a+" "+b+" "+c);//I tried also: if(a==b&&a==c) and:if(a==b&&b==c) else if(a==b&&a!=c&&a>c)System.out.print(a+" "+b+" "+c); else if(a==b&&a!=c&&a<c)System.out.print(c+" "+a+" "+b); else if(a==c&&a!=b&&a>b)System.out.print(a+" "+c+" "+b); else if(a==c&&a!=b&&a<b)System.out.print(b+" "+a+" "+c); else if(a==c&&a!=b&&a>b)System.out.print(a+" "+c+" "+b); else if(b==c&&b!=a&&b>a)System.out.print(b+" "+c+" "+a); else if(b==c&&b!=a&&b<a)System.out.print(a+" "+b+" "+c); }