#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 /*<<< orphan*/ scanf(char *, int *);
int main() {
  int arr1[3];
  int arr2[3];
  int num;
  int i = 0, k = 0;
  for (; i < 3; i++) {
    scanf("%d", &num);
    arr1[i] = num;
  }
  i = 0;
  for (; k < 3; k++) {
    scanf("%d", &num);
    arr2[k] = num;
  }
  int alice = 0, bob = 0;
  for (; i < 3; i++) {
    if (arr1[i] > arr2[i])
      alice++;
    else if (arr1[i] < arr2[i])
      bob++;
  }
  printf("%d  %d", alice, bob);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x0,-0x24(%rbp)
movl   $0x0,-0x28(%rbp)
cmpl   $0x3,-0x24(%rbp)
jge    1170 <main+0x50>
lea    0xeb6(%rip),%rdi
lea    -0x20(%rbp),%rsi
call   1040 <scanf@plt>
mov    -0x20(%rbp),%ecx
movslq -0x24(%rbp),%rax
mov    %ecx,-0x10(%rbp,%rax,4)
mov    -0x24(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x24(%rbp)
jmp    113d <main+0x1d>
movl   $0x0,-0x24(%rbp)
cmpl   $0x3,-0x28(%rbp)
jge    11aa <main+0x8a>
lea    0xe7c(%rip),%rdi
lea    -0x20(%rbp),%rsi
call   1040 <scanf@plt>
mov    -0x20(%rbp),%ecx
movslq -0x28(%rbp),%rax
mov    %ecx,-0x1c(%rbp,%rax,4)
mov    -0x28(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x28(%rbp)
jmp    1177 <main+0x57>
movl   $0x0,-0x2c(%rbp)
movl   $0x0,-0x30(%rbp)
cmpl   $0x3,-0x24(%rbp)
jge    121d <main+0xfd>
movslq -0x24(%rbp),%rax
mov    -0x10(%rbp,%rax,4),%eax
movslq -0x24(%rbp),%rcx
cmp    -0x1c(%rbp,%rcx,4),%eax
jle    11e6 <main+0xc6>
mov    -0x2c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x2c(%rbp)
jmp    120a <main+0xea>
movslq -0x24(%rbp),%rax
mov    -0x10(%rbp,%rax,4),%eax
movslq -0x24(%rbp),%rcx
cmp    -0x1c(%rbp,%rcx,4),%eax
jge    1205 <main+0xe5>
mov    -0x30(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x30(%rbp)
jmp    120a <main+0xea>
jmp    120f <main+0xef>
mov    -0x24(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x24(%rbp)
jmp    11b8 <main+0x98>
mov    -0x2c(%rbp),%esi
mov    -0x30(%rbp),%edx
lea    0xdd6(%rip),%rdi
call   1030 <printf@plt>
mov    -0x4(%rbp),%eax
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x18,%rsp
lea    0xecf(%rip),%r12
lea    0xc(%rsp),%r14
mov    %r12,%rdi
mov    %r14,%rsi
call   1040 <scanf@plt>
mov    0xc(%rsp),%ebx
mov    %r12,%rdi
mov    %r14,%rsi
call   1040 <scanf@plt>
mov    0xc(%rsp),%eax
mov    %eax,0x10(%rsp)
mov    %r12,%rdi
mov    %r14,%rsi
call   1040 <scanf@plt>
mov    0xc(%rsp),%eax
mov    %eax,0x14(%rsp)
mov    %r12,%rdi
mov    %r14,%rsi
call   1040 <scanf@plt>
xor    %r13d,%r13d
xor    %r15d,%r15d
cmp    0xc(%rsp),%ebx
setg   %r13b
setl   %r15b
mov    %r12,%rdi
mov    %r14,%rsi
call   1040 <scanf@plt>
xor    %ebx,%ebx
xor    %ebp,%ebp
mov    0x10(%rsp),%eax
cmp    0xc(%rsp),%eax
setg   %bl
setl   %bpl
mov    %r12,%rdi
mov    %r14,%rsi
call   1040 <scanf@plt>
add    %r13d,%ebx
add    %r15d,%ebp
xor    %esi,%esi
xor    %edx,%edx
mov    0x14(%rsp),%eax
cmp    0xc(%rsp),%eax
setg   %sil
setl   %dl
add    %ebx,%esi
add    %ebp,%edx
lea    0xe27(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x18,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

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

LLVM IR (-O2):
@.str = [3 x i8] c"%d\00"
@.str.1 = [7 x i8] c"%d %d\00"
define i32 @main() {
%1 = alloca i32
%2 = bitcast i32* %1 to i8*
%3 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32* %1)
%4 = load i32, i32* %1
%5 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32* %1)
%6 = load i32, i32* %1
%7 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32* %1)
%8 = load i32, i32* %1
%9 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32* %1)
%10 = load i32, i32* %1
%11 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32* %1)
%12 = load i32, i32* %1
%13 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32* %1)
%14 = load i32, i32* %1
%15 = icmp sgt i32 %4, %10
%16 = icmp slt i32 %4, %10
%17 = zext i1 %15 to i32
%18 = zext i1 %16 to i32
%19 = icmp sgt i32 %6, %12
%20 = icmp slt i32 %6, %12
%21 = zext i1 %19 to i32
%22 = add nuw nsw i32 %17, %21
%23 = zext i1 %20 to i32
%24 = add nuw nsw i32 %18, %23
%25 = icmp sgt i32 %8, %14
%26 = icmp slt i32 %8, %14
%27 = zext i1 %25 to i32
%28 = add nuw nsw i32 %22, %27
%29 = zext i1 %26 to i32
%30 = add nuw nsw i32 %24, %29
%31 = call i32 @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0), i32 %28, i32 %30)
ret i32 0
}