#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 /*<<< 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", 1);
    } else {
      printf("%d\n", 3);
    }
  } else {
    if (b == c) {
      printf("%d\n", 3);
    } else {
      printf("%d\n", 2);
    }
  }
}


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    118b <main+0x6b>
mov    -0xc(%rbp),%eax
cmp    -0x10(%rbp),%eax
jne    1175 <main+0x55>
lea    0xea1(%rip),%rdi
mov    $0x1,%esi
call   1030 <printf@plt>
jmp    1186 <main+0x66>
lea    0xe8b(%rip),%rdi
mov    $0x3,%esi
call   1030 <printf@plt>
jmp    11c3 <main+0xa3>
mov    -0xc(%rbp),%eax
cmp    -0x10(%rbp),%eax
jne    11ad <main+0x8d>
lea    0xe69(%rip),%rdi
mov    $0x3,%esi
call   1030 <printf@plt>
jmp    11be <main+0x9e>
lea    0xe53(%rip),%rdi
mov    $0x2,%esi
call   1030 <printf@plt>
jmp    11c3 <main+0xa3>
mov    -0x4(%rbp),%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
mov    0xc(%rsp),%edx
xor    %esi,%esi
cmp    %edx,%eax
setne  %sil
xor    %edi,%edi
cmp    %edx,%ecx
sete   %dil
or     $0x2,%edi
cmp    %ecx,%eax
lea    0x1(%rsi,%rsi,1),%esi
cmovne %edi,%esi
lea    0xe99(%rip),%rdi
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 = [4 x i8] c"%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 eq i32 %6, %7
br i1 %8, label %9, label %18
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 ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32 1)
br label %17
15: ; preds = %9
%16 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32 3)
br label %17
17: ; preds = %15, %13
br label %27
18: ; preds = %0
%19 = load i32, i32* %3
%20 = load i32, i32* %4
%21 = icmp eq i32 %19, %20
br i1 %21, label %22, label %24
22: ; preds = %18
%23 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32 3)
br label %26
24: ; preds = %18
%25 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32 2)
br label %26
26: ; preds = %24, %22
br label %27
27: ; preds = %26, %17
%28 = load i32, i32* %1
ret i32 %28
}

LLVM IR (-O2):
@.str = [7 x i8] c"%d%d%d\00"
@.str.1 = [4 x i8] c"%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 eq i32 %8, %9
%11 = load i32, i32* %3
%12 = icmp eq i32 %8, %11
%13 = select i1 %12, i32 1, i32 3
%14 = icmp eq i32 %9, %11
%15 = select i1 %14, i32 3, i32 2
%16 = select i1 %10, i32 %13, i32 %15
%17 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32 %16)
ret i32 0
}