#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 && a > c) {
    if (b > c)
      printf("dadaoxiaopailie:%d\n%d\n%d", a, b, c);
    else
      printf("dadaoxiaopailie:%d\n%d\n%d", a, c, b);
  } else if (b > a && b > c) {
    if (a > c)
      printf("dadaoxiaopailie:%d\n%d\n%d", b, a, c);
    else
      printf("dadaoxiaopailie:%d\n%d\n%d", b, c, a);
  } else if (c > a && c > b) {
    if (b > a)
      printf("dadaoxiaopailie:%d\n%d\n%d", c, b, a);
    else
      printf("dadaoxiaopailie:%d\n%d\n%d", c, a, b);
  }
  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    119f <main+0x7f>
mov    -0x8(%rbp),%eax
cmp    -0x10(%rbp),%eax
jle    119f <main+0x7f>
mov    -0xc(%rbp),%eax
cmp    -0x10(%rbp),%eax
jle    1185 <main+0x65>
mov    -0x8(%rbp),%esi
mov    -0xc(%rbp),%edx
mov    -0x10(%rbp),%ecx
lea    0xe8e(%rip),%rdi
call   1030 <printf@plt>
jmp    119a <main+0x7a>
mov    -0x8(%rbp),%esi
mov    -0x10(%rbp),%edx
mov    -0xc(%rbp),%ecx
lea    0xe74(%rip),%rdi
call   1030 <printf@plt>
jmp    1259 <main+0x139>
mov    -0xc(%rbp),%eax
cmp    -0x8(%rbp),%eax
jle    11f7 <main+0xd7>
mov    -0xc(%rbp),%eax
cmp    -0x10(%rbp),%eax
jle    11f7 <main+0xd7>
mov    -0x8(%rbp),%eax
cmp    -0x10(%rbp),%eax
jle    11dd <main+0xbd>
mov    -0xc(%rbp),%esi
mov    -0x8(%rbp),%edx
mov    -0x10(%rbp),%ecx
lea    0xe36(%rip),%rdi
call   1030 <printf@plt>
jmp    11f2 <main+0xd2>
mov    -0xc(%rbp),%esi
mov    -0x10(%rbp),%edx
mov    -0x8(%rbp),%ecx
lea    0xe1c(%rip),%rdi
call   1030 <printf@plt>
jmp    1254 <main+0x134>
mov    -0x10(%rbp),%eax
cmp    -0x8(%rbp),%eax
jle    124f <main+0x12f>
mov    -0x10(%rbp),%eax
cmp    -0xc(%rbp),%eax
jle    124f <main+0x12f>
mov    -0xc(%rbp),%eax
cmp    -0x8(%rbp),%eax
jle    1235 <main+0x115>
mov    -0x10(%rbp),%esi
mov    -0xc(%rbp),%edx
mov    -0x8(%rbp),%ecx
lea    0xdde(%rip),%rdi
call   1030 <printf@plt>
jmp    124a <main+0x12a>
mov    -0x10(%rbp),%esi
mov    -0x8(%rbp),%edx
mov    -0xc(%rbp),%ecx
lea    0xdc4(%rip),%rdi
call   1030 <printf@plt>
jmp    124f <main+0x12f>
jmp    1254 <main+0x134>
jmp    1259 <main+0x139>
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),%eax
mov    0x10(%rsp),%ecx
cmp    %ecx,%eax
jle    116a <main+0x4a>
mov    0xc(%rsp),%r8d
cmp    %r8d,%eax
jle    116a <main+0x4a>
lea    0xead(%rip),%rdi
mov    %eax,%esi
cmp    %r8d,%ecx
jle    11bd <main+0x9d>
mov    %ecx,%edx
mov    %r8d,%ecx
jmp    11c7 <main+0xa7>
mov    0xc(%rsp),%r8d
cmp    %eax,%ecx
jle    118d <main+0x6d>
cmp    %r8d,%ecx
jle    11a5 <main+0x85>
lea    0xe8a(%rip),%rdi
mov    %ecx,%esi
cmp    %r8d,%eax
jle    11c2 <main+0xa2>
mov    %eax,%edx
mov    %r8d,%ecx
jmp    11c7 <main+0xa7>
cmp    %eax,%r8d
jle    11cc <main+0xac>
cmp    %ecx,%r8d
jle    11cc <main+0xac>
lea    0xe6b(%rip),%rdi
mov    %r8d,%esi
mov    %eax,%edx
jmp    11c7 <main+0xa7>
cmp    %eax,%r8d
jle    11cc <main+0xac>
cmp    %ecx,%r8d
jle    11cc <main+0xac>
lea    0xe53(%rip),%rdi
mov    %r8d,%esi
mov    %ecx,%edx
jmp    11c5 <main+0xa5>
mov    %r8d,%edx
jmp    11c7 <main+0xa7>
mov    %r8d,%edx
mov    %eax,%ecx
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x18,%rsp
ret

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

LLVM IR (-O2):
@.str = [9 x i8] c"%d,%d,%d\00"
@.str.1 = [25 x i8] c"dadaoxiaopailie:%d\0A%d\0A%d\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 sgt i32 %8, %9
br i1 %10, label %11, label %20
11: ; preds = %0
%12 = load i32, i32* %3
%13 = icmp sgt i32 %8, %12
br i1 %13, label %14, label %20
14: ; preds = %11
%15 = icmp sgt i32 %9, %12
br i1 %15, label %16, label %18
16: ; preds = %14
%17 = call i32 @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.1, i64 0, i64 0), i32 %8, i32 %9, i32 %12)
br label %43
18: ; preds = %14
%19 = call i32 @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.1, i64 0, i64 0), i32 %8, i32 %12, i32 %9)
br label %43
20: ; preds = %11, %0
%21 = icmp sgt i32 %9, %8
%22 = load i32, i32* %3
br i1 %21, label %23, label %35
23: ; preds = %20
%24 = icmp sgt i32 %9, %22
br i1 %24, label %25, label %31
25: ; preds = %23
%26 = icmp sgt i32 %8, %22
br i1 %26, label %27, label %29
27: ; preds = %25
%28 = call i32 @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.1, i64 0, i64 0), i32 %9, i32 %8, i32 %22)
br label %43
29: ; preds = %25
%30 = call i32 @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.1, i64 0, i64 0), i32 %9, i32 %22, i32 %8)
br label %43
31: ; preds = %23
%32 = icmp sgt i32 %22, %8
%33 = icmp sgt i32 %22, %9
%34 = select i1 %32, i1 %33, i1 false
br i1 %34, label %39, label %43
35: ; preds = %20
%36 = icmp sgt i32 %22, %8
%37 = icmp sgt i32 %22, %9
%38 = select i1 %36, i1 %37, i1 false
br i1 %38, label %41, label %43
39: ; preds = %31
%40 = call i32 @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.1, i64 0, i64 0), i32 %22, i32 %9, i32 %8)
br label %43
41: ; preds = %35
%42 = call i32 @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.1, i64 0, i64 0), i32 %22, i32 %8, i32 %9)
br label %43
43: ; preds = %35, %29, %27, %39, %41, %31, %16, %18
ret i32 0
}