#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 a, b, c;
  scanf("%d%d%d", &a, &b, &c);
  if (a > b) {
    if (b > c) {
      printf("%d\n%d\n%d\n", a, b, c);
    } else {
      if (a > c) {
        printf("%d\n%d\n%d\n", a, c, b);
      } else {
        printf("%d\n%d\n%d\n", c, a, b);
      }
    }
  } else {
    if (b > c) {
      if (a > c) {
        printf("%d\n%d\n%d\n", b, a, c);
      } else {
        printf("%d\n%d\n%d\n", b, c, a);
      }
    } else {
      printf("%d\n%d\n%d\n", c, b, a);
    }
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xeca(%rip),%rdi
lea    -0x8(%rbp),%rsi
lea    -0xc(%rbp),%rdx
lea    -0x10(%rbp),%rcx
call   1040 <scanf@plt>
mov    -0x8(%rbp),%eax
cmp    -0xc(%rbp),%eax
jle    11be <main+0x9e>
mov    -0xc(%rbp),%eax
cmp    -0x10(%rbp),%eax
jle    1179 <main+0x59>
mov    -0x8(%rbp),%esi
mov    -0xc(%rbp),%edx
mov    -0x10(%rbp),%ecx
lea    0xe98(%rip),%rdi
call   1030 <printf@plt>
jmp    11b9 <main+0x99>
mov    -0x8(%rbp),%eax
cmp    -0x10(%rbp),%eax
jle    119f <main+0x7f>
mov    -0x8(%rbp),%esi
mov    -0x10(%rbp),%edx
mov    -0xc(%rbp),%ecx
lea    0xe72(%rip),%rdi
call   1030 <printf@plt>
jmp    11b4 <main+0x94>
mov    -0x10(%rbp),%esi
mov    -0x8(%rbp),%edx
mov    -0xc(%rbp),%ecx
lea    0xe58(%rip),%rdi
call   1030 <printf@plt>
jmp    11b9 <main+0x99>
jmp    1224 <main+0x104>
mov    -0xc(%rbp),%eax
cmp    -0x10(%rbp),%eax
jle    120a <main+0xea>
mov    -0x8(%rbp),%eax
cmp    -0x10(%rbp),%eax
jle    11f0 <main+0xd0>
mov    -0xc(%rbp),%esi
mov    -0x8(%rbp),%edx
mov    -0x10(%rbp),%ecx
lea    0xe21(%rip),%rdi
call   1030 <printf@plt>
jmp    1205 <main+0xe5>
mov    -0xc(%rbp),%esi
mov    -0x10(%rbp),%edx
mov    -0x8(%rbp),%ecx
lea    0xe07(%rip),%rdi
call   1030 <printf@plt>
jmp    121f <main+0xff>
mov    -0x10(%rbp),%esi
mov    -0xc(%rbp),%edx
mov    -0x8(%rbp),%ecx
lea    0xded(%rip),%rdi
call   1030 <printf@plt>
jmp    1224 <main+0x104>
xor    %eax,%eax
add    $0x10,%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),%ecx
mov    0x10(%rsp),%eax
mov    0xc(%rsp),%r8d
lea    0xeb4(%rip),%rdi
cmp    %eax,%ecx
jle    1165 <main+0x45>
cmp    %r8d,%eax
jle    1178 <main+0x58>
mov    %ecx,%esi
mov    %eax,%edx
mov    %r8d,%ecx
jmp    1197 <main+0x77>
cmp    %r8d,%eax
jle    1184 <main+0x64>
mov    %eax,%esi
cmp    %r8d,%ecx
jle    118b <main+0x6b>
mov    %ecx,%edx
mov    %r8d,%ecx
jmp    1197 <main+0x77>
cmp    %r8d,%ecx
jle    1190 <main+0x70>
mov    %ecx,%esi
mov    %r8d,%edx
jmp    1195 <main+0x75>
mov    %r8d,%esi
mov    %eax,%edx
jmp    1197 <main+0x77>
mov    %r8d,%edx
jmp    1197 <main+0x77>
mov    %r8d,%esi
mov    %ecx,%edx
mov    %eax,%ecx
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x18,%rsp
ret

LLVM IR (-O0):
@.str = [7 x i8] c"%d%d%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
store i32 0, i32* %1
%5 = call i32 @scanf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0), i32* %2, i32* %3, i32* %4)
%6 = load i32, i32* %2
%7 = load i32, i32* %3
%8 = icmp sgt i32 %6, %7
br i1 %8, label %9, label %34
9: ; preds = %0
%10 = load i32, i32* %3
%11 = load i32, i32* %4
%12 = icmp sgt i32 %10, %11
br i1 %12, label %13, label %18
13: ; preds = %9
%14 = load i32, i32* %2
%15 = load i32, i32* %3
%16 = load i32, i32* %4
%17 = call i32 @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.1, i64 0, i64 0), i32 %14, i32 %15, i32 %16)
br label %33
18: ; preds = %9
%19 = load i32, i32* %2
%20 = load i32, i32* %4
%21 = icmp sgt i32 %19, %20
br i1 %21, label %22, label %27
22: ; preds = %18
%23 = load i32, i32* %2
%24 = load i32, i32* %4
%25 = load i32, i32* %3
%26 = call i32 @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.1, i64 0, i64 0), i32 %23, i32 %24, i32 %25)
br label %32
27: ; preds = %18
%28 = load i32, i32* %4
%29 = load i32, i32* %2
%30 = load i32, i32* %3
%31 = call i32 @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.1, i64 0, i64 0), i32 %28, i32 %29, i32 %30)
br label %32
32: ; preds = %27, %22
br label %33
33: ; preds = %32, %13
br label %59
34: ; preds = %0
%35 = load i32, i32* %3
%36 = load i32, i32* %4
%37 = icmp sgt i32 %35, %36
br i1 %37, label %38, label %53
38: ; preds = %34
%39 = load i32, i32* %2
%40 = load i32, i32* %4
%41 = icmp sgt i32 %39, %40
br i1 %41, label %42, label %47
42: ; preds = %38
%43 = load i32, i32* %3
%44 = load i32, i32* %2
%45 = load i32, i32* %4
%46 = call i32 @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.1, i64 0, i64 0), i32 %43, i32 %44, i32 %45)
br label %52
47: ; preds = %38
%48 = load i32, i32* %3
%49 = load i32, i32* %4
%50 = load i32, i32* %2
%51 = call i32 @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.1, i64 0, i64 0), i32 %48, i32 %49, i32 %50)
br label %52
52: ; preds = %47, %42
br label %58
53: ; preds = %34
%54 = load i32, i32* %4
%55 = load i32, i32* %3
%56 = load i32, i32* %2
%57 = call i32 @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.1, i64 0, i64 0), i32 %54, i32 %55, i32 %56)
br label %58
58: ; preds = %53, %52
br label %59
59: ; preds = %58, %33
ret i32 0
}

LLVM IR (-O2):
@.str = [7 x i8] c"%d%d%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 ([7 x i8], [7 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 sgt i32 %8, %9
%11 = load i32, i32* %3
%12 = icmp sgt i32 %9, %11
br i1 %10, label %13, label %22
13: ; preds = %0
br i1 %12, label %14, label %16
14: ; preds = %13
%15 = call i32 @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.1, i64 0, i64 0), i32 %8, i32 %9, i32 %11)
br label %31
16: ; preds = %13
%17 = icmp sgt i32 %8, %11
br i1 %17, label %18, label %20
18: ; preds = %16
%19 = call i32 @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.1, i64 0, i64 0), i32 %8, i32 %11, i32 %9)
br label %31
20: ; preds = %16
%21 = call i32 @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.1, i64 0, i64 0), i32 %11, i32 %8, i32 %9)
br label %31
22: ; preds = %0
br i1 %12, label %23, label %29
23: ; preds = %22
%24 = icmp sgt i32 %8, %11
br i1 %24, label %25, label %27
25: ; preds = %23
%26 = call i32 @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.1, i64 0, i64 0), i32 %9, i32 %8, i32 %11)
br label %31
27: ; preds = %23
%28 = call i32 @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.1, i64 0, i64 0), i32 %9, i32 %11, i32 %8)
br label %31
29: ; preds = %22
%30 = call i32 @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.1, i64 0, i64 0), i32 %11, i32 %9, i32 %8)
br label %31
31: ; preds = %29, %27, %25, %14, %20, %18
ret i32 0
}