#define NULL ((void *)0)
typedef unsigned long size_t; // Customize by platform.
typedef long intptr_t;
typedef unsigned long uintptr_t;
typedef long scalar_t__; // Either arithmetic or pointer type.
/* By default, we understand bool (as a convenience). */
typedef int bool;
#define false 0
#define true 1

/* Forward declarations */

/* Type definitions */

/* Variables and functions */
int /*<<< orphan*/ printf(char *, int, int, int);
int /*<<< orphan*/ scanf(char *, int *, int *, int *);
int main() {
  int aux, a, b, c;
  scanf("%d\n%d\n%d", &a, &b, &c);
  if (a < b || a < c) {
    if (b > c) {
      aux = a;
      a = b;
      b = aux;
    } else {
      aux = a;
      a = c;
      c = aux;
    }
  }
  if (b < c) {
    aux = b;
    b = c;
    c = aux;
  }
  printf("%d\n%d\n%d\n", a, b, c);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xeca(%rip),%rdi
lea    -0xc(%rbp),%rsi
lea    -0x10(%rbp),%rdx
lea    -0x14(%rbp),%rcx
call   1040 <scanf@plt>
mov    -0xc(%rbp),%eax
cmp    -0x10(%rbp),%eax
jl     115f <main+0x3f>
mov    -0xc(%rbp),%eax
cmp    -0x14(%rbp),%eax
jge    1199 <main+0x79>
mov    -0x10(%rbp),%eax
cmp    -0x14(%rbp),%eax
jle    1182 <main+0x62>
mov    -0xc(%rbp),%eax
mov    %eax,-0x8(%rbp)
mov    -0x10(%rbp),%eax
mov    %eax,-0xc(%rbp)
mov    -0x8(%rbp),%eax
mov    %eax,-0x10(%rbp)
jmp    1194 <main+0x74>
mov    -0xc(%rbp),%eax
mov    %eax,-0x8(%rbp)
mov    -0x14(%rbp),%eax
mov    %eax,-0xc(%rbp)
mov    -0x8(%rbp),%eax
mov    %eax,-0x14(%rbp)
jmp    1199 <main+0x79>
mov    -0x10(%rbp),%eax
cmp    -0x14(%rbp),%eax
jge    11b7 <main+0x97>
mov    -0x10(%rbp),%eax
mov    %eax,-0x8(%rbp)
mov    -0x14(%rbp),%eax
mov    %eax,-0x10(%rbp)
mov    -0x8(%rbp),%eax
mov    %eax,-0x14(%rbp)
mov    -0xc(%rbp),%esi
mov    -0x10(%rbp),%edx
mov    -0x14(%rbp),%ecx
lea    0xe42(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
sub    $0x18,%rsp
lea    0xed5(%rip),%rdi
lea    0x14(%rsp),%rsi
lea    0x10(%rsp),%rdx
lea    0xc(%rsp),%rcx
call   1040 <scanf@plt>
mov    0x14(%rsp),%eax
mov    0x10(%rsp),%ecx
mov    0xc(%rsp),%edx
cmp    %ecx,%eax
jl     1157 <main+0x37>
cmp    %edx,%eax
jl     1157 <main+0x37>
mov    %eax,%esi
jmp    117b <main+0x5b>
cmp    %edx,%ecx
jle    116f <main+0x4f>
mov    %ecx,0x14(%rsp)
mov    %eax,0x10(%rsp)
mov    %ecx,%esi
cmp    %edx,%eax
jl     1181 <main+0x61>
mov    %edx,%ecx
mov    %eax,%edx
jmp    118b <main+0x6b>
mov    %edx,0x14(%rsp)
mov    %eax,0xc(%rsp)
mov    %edx,%esi
mov    %eax,%edx
mov    %ecx,%eax
cmp    %edx,%eax
jge    1169 <main+0x49>
mov    %edx,0x10(%rsp)
mov    %eax,0xc(%rsp)
mov    %eax,%ecx
lea    0xe77(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x18,%rsp
ret

LLVM IR (-O0):
@.str = [9 x i8] c"%d\0A%d\0A%d\00"
@.str.1 = [10 x i8] c"%d\0A%d\0A%d\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32
store i32 0, i32* %1
%6 = call i32 @scanf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0), i32* %3, i32* %4, i32* %5)
%7 = load i32, i32* %3
%8 = load i32, i32* %4
%9 = icmp slt i32 %7, %8
br i1 %9, label %14, label %10
10: ; preds = %0
%11 = load i32, i32* %3
%12 = load i32, i32* %5
%13 = icmp slt i32 %11, %12
br i1 %13, label %14, label %27
14: ; preds = %10, %0
%15 = load i32, i32* %4
%16 = load i32, i32* %5
%17 = icmp sgt i32 %15, %16
br i1 %17, label %18, label %22
18: ; preds = %14
%19 = load i32, i32* %3
store i32 %19, i32* %2
%20 = load i32, i32* %4
store i32 %20, i32* %3
%21 = load i32, i32* %2
store i32 %21, i32* %4
br label %26
22: ; preds = %14
%23 = load i32, i32* %3
store i32 %23, i32* %2
%24 = load i32, i32* %5
store i32 %24, i32* %3
%25 = load i32, i32* %2
store i32 %25, i32* %5
br label %26
26: ; preds = %22, %18
br label %27
27: ; preds = %26, %10
%28 = load i32, i32* %4
%29 = load i32, i32* %5
%30 = icmp slt i32 %28, %29
br i1 %30, label %31, label %35
31: ; preds = %27
%32 = load i32, i32* %4
store i32 %32, i32* %2
%33 = load i32, i32* %5
store i32 %33, i32* %4
%34 = load i32, i32* %2
store i32 %34, i32* %5
br label %35
35: ; preds = %31, %27
%36 = load i32, i32* %3
%37 = load i32, i32* %4
%38 = load i32, i32* %5
%39 = call i32 @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.1, i64 0, i64 0), i32 %36, i32 %37, i32 %38)
ret i32 0
}

LLVM IR (-O2):
@.str = [9 x i8] c"%d\0A%d\0A%d\00"
@.str.1 = [10 x i8] c"%d\0A%d\0A%d\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = bitcast i32* %1 to i8*
%5 = bitcast i32* %2 to i8*
%6 = bitcast i32* %3 to i8*
%7 = call i32 @scanf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0), i32* %1, i32* %2, i32* %3)
%8 = load i32, i32* %1
%9 = load i32, i32* %2
%10 = icmp slt i32 %8, %9
%11 = load i32, i32* %3
%12 = icmp slt i32 %8, %11
%13 = select i1 %10, i1 true, i1 %12
br i1 %13, label %14, label %18
14: ; preds = %0
%15 = icmp sgt i32 %9, %11
br i1 %15, label %16, label %17
16: ; preds = %14
store i32 %9, i32* %1
store i32 %8, i32* %2
br label %18
17: ; preds = %14
store i32 %11, i32* %1
store i32 %8, i32* %3
br label %18
18: ; preds = %0, %16, %17
%19 = phi i32 [ %8, %0 ], [ %9, %16 ], [ %11, %17 ]
%20 = phi i32 [ %11, %0 ], [ %11, %16 ], [ %8, %17 ]
%21 = phi i32 [ %9, %0 ], [ %8, %16 ], [ %9, %17 ]
%22 = icmp slt i32 %21, %20
br i1 %22, label %23, label %24
23: ; preds = %18
store i32 %20, i32* %2
store i32 %21, i32* %3
br label %24
24: ; preds = %23, %18
%25 = phi i32 [ %21, %23 ], [ %20, %18 ]
%26 = phi i32 [ %20, %23 ], [ %21, %18 ]
%27 = call i32 @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.1, i64 0, i64 0), i32 %19, i32 %26, i32 %25)
ret i32 0
}