#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 /*<<< orphan*/ scanf(char *, int *, int *, int *);
int /*<<< orphan*/ system(char *);
int main() {
  int A, B, C;
  scanf("%d %d %d", &A, &B, &C);
  system("clear");
  if (A < B && B <= C)
    printf("%d\n%d\n%d\n", A, B, C);
  else if (A < C && C < B)
    printf("%d\n%d\n%d\n", A, C, B);
  else if (B < A && A <= C)
    printf("%d\n%d\n%d\n", B, A, C);
  else if (B < C && C < A)
    printf("%d\n%d\n%d\n", B, C, A);
  else if (C < A && A <= B)
    printf("%d\n%d\n%d\n", C, A, B);
  else if (C < B && B < A)
    printf("%d\n%d\n%d\n", C, B, A);
  else
    printf("%d\n%d\n%d\n", A, B, C);
  printf("\n");
  printf("%d\n%d\n%d\n", A, B, C);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xeba(%rip),%rdi
lea    -0x8(%rbp),%rsi
lea    -0xc(%rbp),%rdx
lea    -0x10(%rbp),%rcx
call   1050 <scanf@plt>
lea    0xeab(%rip),%rdi
call   1030 <system@plt>
mov    -0x8(%rbp),%eax
cmp    -0xc(%rbp),%eax
jge    1197 <main+0x67>
mov    -0xc(%rbp),%eax
cmp    -0x10(%rbp),%eax
jg     1197 <main+0x67>
mov    -0x8(%rbp),%esi
mov    -0xc(%rbp),%edx
mov    -0x10(%rbp),%ecx
lea    0xe84(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
jmp    12cb <main+0x19b>
mov    -0x8(%rbp),%eax
cmp    -0x10(%rbp),%eax
jge    11cb <main+0x9b>
mov    -0x10(%rbp),%eax
cmp    -0xc(%rbp),%eax
jge    11cb <main+0x9b>
mov    -0x8(%rbp),%esi
mov    -0x10(%rbp),%edx
mov    -0xc(%rbp),%ecx
lea    0xe50(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
jmp    12c6 <main+0x196>
mov    -0xc(%rbp),%eax
cmp    -0x8(%rbp),%eax
jge    11ff <main+0xcf>
mov    -0x8(%rbp),%eax
cmp    -0x10(%rbp),%eax
jg     11ff <main+0xcf>
mov    -0xc(%rbp),%esi
mov    -0x8(%rbp),%edx
mov    -0x10(%rbp),%ecx
lea    0xe1c(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
jmp    12c1 <main+0x191>
mov    -0xc(%rbp),%eax
cmp    -0x10(%rbp),%eax
jge    1233 <main+0x103>
mov    -0x10(%rbp),%eax
cmp    -0x8(%rbp),%eax
jge    1233 <main+0x103>
mov    -0xc(%rbp),%esi
mov    -0x10(%rbp),%edx
mov    -0x8(%rbp),%ecx
lea    0xde8(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
jmp    12bc <main+0x18c>
mov    -0x10(%rbp),%eax
cmp    -0x8(%rbp),%eax
jge    1267 <main+0x137>
mov    -0x8(%rbp),%eax
cmp    -0xc(%rbp),%eax
jg     1267 <main+0x137>
mov    -0x10(%rbp),%esi
mov    -0x8(%rbp),%edx
mov    -0xc(%rbp),%ecx
lea    0xdb4(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
jmp    12b7 <main+0x187>
mov    -0x10(%rbp),%eax
cmp    -0xc(%rbp),%eax
jge    129b <main+0x16b>
mov    -0xc(%rbp),%eax
cmp    -0x8(%rbp),%eax
jge    129b <main+0x16b>
mov    -0x10(%rbp),%esi
mov    -0xc(%rbp),%edx
mov    -0x8(%rbp),%ecx
lea    0xd80(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
jmp    12b2 <main+0x182>
mov    -0x8(%rbp),%esi
mov    -0xc(%rbp),%edx
mov    -0x10(%rbp),%ecx
lea    0xd64(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
jmp    12b7 <main+0x187>
jmp    12bc <main+0x18c>
jmp    12c1 <main+0x191>
jmp    12c6 <main+0x196>
jmp    12cb <main+0x19b>
lea    0xd45(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x8(%rbp),%esi
mov    -0xc(%rbp),%edx
mov    -0x10(%rbp),%ecx
lea    0xd26(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
sub    $0x18,%rsp
lea    0xeb5(%rip),%rdi
lea    0x14(%rsp),%rsi
lea    0x10(%rsp),%rdx
lea    0xc(%rsp),%rcx
call   1060 <scanf@plt>
lea    0xea3(%rip),%rdi
call   1040 <system@plt>
mov    0x14(%rsp),%r8d
mov    0x10(%rsp),%eax
mov    0xc(%rsp),%ecx
cmp    %eax,%r8d
jge    118f <main+0x4f>
cmp    %ecx,%eax
jg     118f <main+0x4f>
lea    0xe87(%rip),%rdi
mov    %r8d,%esi
mov    %eax,%edx
jmp    1205 <main+0xc5>
cmp    %ecx,%r8d
jge    11a8 <main+0x68>
cmp    %eax,%ecx
jge    11a8 <main+0x68>
lea    0xe70(%rip),%rdi
mov    %r8d,%esi
mov    %ecx,%edx
mov    %eax,%ecx
jmp    1205 <main+0xc5>
cmp    %r8d,%eax
setge  %sil
jge    11c4 <main+0x84>
cmp    %ecx,%r8d
jg     11c4 <main+0x84>
lea    0xe52(%rip),%rdi
mov    %eax,%esi
mov    %r8d,%edx
jmp    1205 <main+0xc5>
cmp    %ecx,%eax
jge    11dd <main+0x9d>
cmp    %ecx,%r8d
jle    11dd <main+0x9d>
lea    0xe3b(%rip),%rdi
mov    %eax,%esi
mov    %ecx,%edx
mov    %r8d,%ecx
jmp    1205 <main+0xc5>
cmp    %ecx,%r8d
jle    11ed <main+0xad>
cmp    %r8d,%eax
jge    1237 <main+0xf7>
cmp    %eax,%ecx
jge    1181 <main+0x41>
jmp    11f7 <main+0xb7>
cmp    %eax,%ecx
setge  %dl
or     %sil,%dl
jne    1181 <main+0x41>
lea    0xe11(%rip),%rdi
mov    %ecx,%esi
mov    %eax,%edx
mov    %r8d,%ecx
xor    %eax,%eax
call   1050 <printf@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
mov    0x14(%rsp),%esi
mov    0x10(%rsp),%edx
mov    0xc(%rsp),%ecx
lea    0xde6(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
xor    %eax,%eax
add    $0x18,%rsp
ret
lea    0xdd1(%rip),%rdi
mov    %ecx,%esi
mov    %r8d,%edx
jmp    11a4 <main+0x64>

LLVM IR (-O0):
@.str = [9 x i8] c"%d %d %d\00"
@.str.1 = [6 x i8] c"clear\00"
@.str.2 = [10 x i8] c"%d\0A%d\0A%d\0A\00"
@.str.3 = [2 x i8] c"\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 ([9 x i8], [9 x i8]* @.str, i64 0, i64 0), i32* %2, i32* %3, i32* %4)
%6 = call i32 @system(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0))
%7 = load i32, i32* %2
%8 = load i32, i32* %3
%9 = icmp slt i32 %7, %8
br i1 %9, label %10, label %19
10: ; preds = %0
%11 = load i32, i32* %3
%12 = load i32, i32* %4
%13 = icmp sle i32 %11, %12
br i1 %13, label %14, label %19
14: ; preds = %10
%15 = load i32, i32* %2
%16 = load i32, i32* %3
%17 = load i32, i32* %4
%18 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.2, i64 0, i64 0), i32 %15, i32 %16, i32 %17)
br label %94
19: ; preds = %10, %0
%20 = load i32, i32* %2
%21 = load i32, i32* %4
%22 = icmp slt i32 %20, %21
br i1 %22, label %23, label %32
23: ; preds = %19
%24 = load i32, i32* %4
%25 = load i32, i32* %3
%26 = icmp slt i32 %24, %25
br i1 %26, label %27, label %32
27: ; preds = %23
%28 = load i32, i32* %2
%29 = load i32, i32* %4
%30 = load i32, i32* %3
%31 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.2, i64 0, i64 0), i32 %28, i32 %29, i32 %30)
br label %93
32: ; preds = %23, %19
%33 = load i32, i32* %3
%34 = load i32, i32* %2
%35 = icmp slt i32 %33, %34
br i1 %35, label %36, label %45
36: ; preds = %32
%37 = load i32, i32* %2
%38 = load i32, i32* %4
%39 = icmp sle i32 %37, %38
br i1 %39, label %40, label %45
40: ; preds = %36
%41 = load i32, i32* %3
%42 = load i32, i32* %2
%43 = load i32, i32* %4
%44 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.2, i64 0, i64 0), i32 %41, i32 %42, i32 %43)
br label %92
45: ; preds = %36, %32
%46 = load i32, i32* %3
%47 = load i32, i32* %4
%48 = icmp slt i32 %46, %47
br i1 %48, label %49, label %58
49: ; preds = %45
%50 = load i32, i32* %4
%51 = load i32, i32* %2
%52 = icmp slt i32 %50, %51
br i1 %52, label %53, label %58
53: ; preds = %49
%54 = load i32, i32* %3
%55 = load i32, i32* %4
%56 = load i32, i32* %2
%57 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.2, i64 0, i64 0), i32 %54, i32 %55, i32 %56)
br label %91
58: ; preds = %49, %45
%59 = load i32, i32* %4
%60 = load i32, i32* %2
%61 = icmp slt i32 %59, %60
br i1 %61, label %62, label %71
62: ; preds = %58
%63 = load i32, i32* %2
%64 = load i32, i32* %3
%65 = icmp sle i32 %63, %64
br i1 %65, label %66, label %71
66: ; preds = %62
%67 = load i32, i32* %4
%68 = load i32, i32* %2
%69 = load i32, i32* %3
%70 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.2, i64 0, i64 0), i32 %67, i32 %68, i32 %69)
br label %90
71: ; preds = %62, %58
%72 = load i32, i32* %4
%73 = load i32, i32* %3
%74 = icmp slt i32 %72, %73
br i1 %74, label %75, label %84
75: ; preds = %71
%76 = load i32, i32* %3
%77 = load i32, i32* %2
%78 = icmp slt i32 %76, %77
br i1 %78, label %79, label %84
79: ; preds = %75
%80 = load i32, i32* %4
%81 = load i32, i32* %3
%82 = load i32, i32* %2
%83 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.2, i64 0, i64 0), i32 %80, i32 %81, i32 %82)
br label %89
84: ; preds = %75, %71
%85 = load i32, i32* %2
%86 = load i32, i32* %3
%87 = load i32, i32* %4
%88 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.2, i64 0, i64 0), i32 %85, i32 %86, i32 %87)
br label %89
89: ; preds = %84, %79
br label %90
90: ; preds = %89, %66
br label %91
91: ; preds = %90, %53
br label %92
92: ; preds = %91, %40
br label %93
93: ; preds = %92, %27
br label %94
94: ; preds = %93, %14
%95 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0))
%96 = load i32, i32* %2
%97 = load i32, i32* %3
%98 = load i32, i32* %4
%99 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.2, i64 0, i64 0), i32 %96, i32 %97, i32 %98)
ret i32 0
}

LLVM IR (-O2):
@.str = [9 x i8] c"%d %d %d\00"
@.str.1 = [6 x i8] c"clear\00"
@.str.2 = [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 = call i32 @system(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0))
%9 = load i32, i32* %1
%10 = load i32, i32* %2
%11 = icmp sge i32 %9, %10
%12 = load i32, i32* %3
%13 = icmp sgt i32 %10, %12
%14 = select i1 %11, i1 true, i1 %13
br i1 %14, label %17, label %15
15: ; preds = %0
%16 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([10 x i8], [10 x i8]* @.str.2, i64 0, i64 0), i32 %9, i32 %10, i32 %12)
br label %47
17: ; preds = %0
%18 = icmp slt i32 %9, %12
%19 = icmp slt i32 %12, %10
%20 = select i1 %18, i1 %19, i1 false
br i1 %20, label %21, label %23
21: ; preds = %17
%22 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([10 x i8], [10 x i8]* @.str.2, i64 0, i64 0), i32 %9, i32 %12, i32 %10)
br label %47
23: ; preds = %17
%24 = icmp slt i32 %10, %9
%25 = xor i1 %24, true
%26 = icmp sgt i32 %9, %12
%27 = select i1 %25, i1 true, i1 %26
br i1 %27, label %30, label %28
28: ; preds = %23
%29 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([10 x i8], [10 x i8]* @.str.2, i64 0, i64 0), i32 %10, i32 %9, i32 %12)
br label %47
30: ; preds = %23
%31 = icmp slt i32 %10, %12
%32 = select i1 %31, i1 %26, i1 false
br i1 %32, label %33, label %35
33: ; preds = %30
%34 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([10 x i8], [10 x i8]* @.str.2, i64 0, i64 0), i32 %10, i32 %12, i32 %9)
br label %47
35: ; preds = %30
br i1 %26, label %36, label %39
36: ; preds = %35
br i1 %24, label %42, label %37
37: ; preds = %36
%38 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([10 x i8], [10 x i8]* @.str.2, i64 0, i64 0), i32 %12, i32 %9, i32 %10)
br label %47
39: ; preds = %35
%40 = icmp sge i32 %12, %10
%41 = select i1 %40, i1 true, i1 %25
br i1 %41, label %45, label %43
42: ; preds = %36
br i1 %19, label %43, label %45
43: ; preds = %39, %42
%44 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([10 x i8], [10 x i8]* @.str.2, i64 0, i64 0), i32 %12, i32 %10, i32 %9)
br label %47
45: ; preds = %39, %42
%46 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([10 x i8], [10 x i8]* @.str.2, i64 0, i64 0), i32 %9, i32 %10, i32 %12)
br label %47
47: ; preds = %21, %33, %43, %45, %37, %28, %15
%48 = call i32 @putchar(i32 10)
%49 = load i32, i32* %1
%50 = load i32, i32* %2
%51 = load i32, i32* %3
%52 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([10 x i8], [10 x i8]* @.str.2, i64 0, i64 0), i32 %49, i32 %50, i32 %51)
ret i32 0
}