import java.io.*; import java.util.Scanner; public class Solution { public static void main(String[] args) throws Exception { Scanner sc1 = new Scanner(System.in); int a = sc1.nextInt(); int b = sc1.nextInt(); int c = sc1.nextInt(); int d = sc1.nextInt(); if (a>=b && a>=c) { if (b>=c) { System.out.println(c + " " + b + " " + a); } else { System.out.println(b + " " + c + " " + a); } } if (b>=a && b>=c) { if (c>=a) { System.out.println(a + " " + c + " " + b); } else { System.out.println(c + " " + a + " " + b); } } if (c>=a && c>=b) { if (a>=b) { System.out.println(b + " " + a + " " + c); } else { System.out.println(a + " " + b + " " + c); } } } }