#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 main() {
  int a, b, c;
  scanf("%d%d%d", &a, &b, &c);
  if (a == b && b == c) {
    printf("*\n");
  } else {
    if (a == b) {
      printf("C\n");
    }
    if (b == c) {
      printf("A\n");
    }
    if (a == c) {
      printf("B\n");
    }
  }
  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
jne    1170 <main+0x50>
mov    -0xc(%rbp),%eax
cmp    -0x10(%rbp),%eax
jne    1170 <main+0x50>
lea    0xea1(%rip),%rdi
call   1030 <printf@plt>
jmp    11bd <main+0x9d>
mov    -0x8(%rbp),%eax
cmp    -0xc(%rbp),%eax
jne    1188 <main+0x68>
lea    0xe87(%rip),%rdi
call   1030 <printf@plt>
mov    -0xc(%rbp),%eax
cmp    -0x10(%rbp),%eax
jne    11a0 <main+0x80>
lea    0xe72(%rip),%rdi
call   1030 <printf@plt>
mov    -0x8(%rbp),%eax
cmp    -0x10(%rbp),%eax
jne    11b8 <main+0x98>
lea    0xe5d(%rip),%rdi
call   1030 <printf@plt>
jmp    11bd <main+0x9d>
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),%edx
mov    0x10(%rsp),%ecx
mov    0xc(%rsp),%eax
cmp    %ecx,%edx
jne    115c <main+0x3c>
cmp    %eax,%ecx
jne    115c <main+0x3c>
lea    0xeb3(%rip),%rdi
jmp    11a1 <main+0x81>
cmp    %ecx,%edx
je     116c <main+0x4c>
cmp    %eax,%ecx
je     1184 <main+0x64>
cmp    %eax,0x14(%rsp)
je     119a <main+0x7a>
jmp    11a6 <main+0x86>
lea    0xe98(%rip),%rdi
call   1030 <puts@plt>
mov    0x10(%rsp),%ecx
mov    0xc(%rsp),%eax
cmp    %eax,%ecx
jne    1164 <main+0x44>
lea    0xe7e(%rip),%rdi
call   1030 <puts@plt>
mov    0xc(%rsp),%eax
cmp    %eax,0x14(%rsp)
jne    11a6 <main+0x86>
lea    0xe66(%rip),%rdi
call   1030 <puts@plt>
xor    %eax,%eax
add    $0x18,%rsp
ret

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

LLVM IR (-O2):
@.str = [7 x i8] c"%d%d%d\00"
@str = [2 x i8] c"B\00"
@str.5 = [2 x i8] c"A\00"
@str.6 = [2 x i8] c"C\00"
@str.7 = [2 x i8] c"*\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 eq i32 %8, %9
%11 = load i32, i32* %3
%12 = icmp eq i32 %9, %11
%13 = select i1 %10, i1 %12, i1 false
br i1 %13, label %30, label %14
14: ; preds = %0
br i1 %10, label %15, label %19
15: ; preds = %14
%16 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([2 x i8], [2 x i8]* @str.6, i64 0, i64 0))
%17 = load i32, i32* %2
%18 = load i32, i32* %3
br label %19
19: ; preds = %15, %14
%20 = phi i32 [ %18, %15 ], [ %11, %14 ]
%21 = phi i32 [ %17, %15 ], [ %9, %14 ]
%22 = icmp eq i32 %21, %20
br i1 %22, label %23, label %26
23: ; preds = %19
%24 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([2 x i8], [2 x i8]* @str.5, i64 0, i64 0))
%25 = load i32, i32* %3
br label %26
26: ; preds = %23, %19
%27 = phi i32 [ %25, %23 ], [ %20, %19 ]
%28 = load i32, i32* %1
%29 = icmp eq i32 %28, %27
br i1 %29, label %30, label %33
30: ; preds = %26, %0
%31 = phi i8* [ getelementptr inbounds ([2 x i8], [2 x i8]* @str.7, i64 0, i64 0), %0 ], [ getelementptr inbounds ([2 x i8], [2 x i8]* @str, i64 0, i64 0), %26 ]
%32 = call i32 @puts(i8* dereferenceable(1) %31)
br label %33
33: ; preds = %30, %26
ret i32 0
}