#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 *, int *);
int main() {
  int alice[3];
  int bob[3];
  scanf("%d %d %d", &alice[0], &alice[1], &alice[2]);
  scanf("%d %d %d", &bob[0], &bob[1], &bob[2]);
  int score_alice = 0;
  int score_bob = 0;
  for (int i = 0; i < 3; i++) {
    if (alice[i] > bob[i])
      score_alice++;
    if (bob[i] > alice[i])
      score_bob++;
  }
  printf("%d %d\n", score_alice, score_bob);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
movl   $0x0,-0x4(%rbp)
lea    -0x10(%rbp),%rsi
lea    -0x10(%rbp),%rdx
add    $0x4,%rdx
lea    -0x10(%rbp),%rcx
add    $0x8,%rcx
lea    0xeb6(%rip),%rdi
call   1040 <scanf@plt>
lea    -0x1c(%rbp),%rsi
lea    -0x1c(%rbp),%rdx
add    $0x4,%rdx
lea    -0x1c(%rbp),%rcx
add    $0x8,%rcx
lea    0xe96(%rip),%rdi
call   1040 <scanf@plt>
movl   $0x0,-0x20(%rbp)
movl   $0x0,-0x24(%rbp)
movl   $0x0,-0x28(%rbp)
cmpl   $0x3,-0x28(%rbp)
jge    11df <main+0xbf>
movslq -0x28(%rbp),%rax
mov    -0x10(%rbp,%rax,4),%eax
movslq -0x28(%rbp),%rcx
cmp    -0x1c(%rbp,%rcx,4),%eax
jle    11ad <main+0x8d>
mov    -0x20(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x20(%rbp)
movslq -0x28(%rbp),%rax
mov    -0x1c(%rbp,%rax,4),%eax
movslq -0x28(%rbp),%rcx
cmp    -0x10(%rbp,%rcx,4),%eax
jle    11cc <main+0xac>
mov    -0x24(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x24(%rbp)
jmp    11d1 <main+0xb1>
mov    -0x28(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x28(%rbp)
jmp    1184 <main+0x64>
mov    -0x20(%rbp),%esi
mov    -0x24(%rbp),%edx
lea    0xe1d(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
sub    $0x20,%rsp
lea    0x18(%rsp),%rdx
lea    0x1c(%rsp),%rcx
lea    0xeca(%rip),%rbx
lea    0x14(%rsp),%rsi
mov    %rbx,%rdi
call   1040 <scanf@plt>
lea    0xc(%rsp),%rdx
lea    0x10(%rsp),%rcx
lea    0x8(%rsp),%rsi
mov    %rbx,%rdi
call   1040 <scanf@plt>
mov    0x14(%rsp),%eax
mov    0x18(%rsp),%ecx
mov    0x8(%rsp),%edx
mov    0xc(%rsp),%esi
xor    %edi,%edi
xor    %ebx,%ebx
cmp    %edx,%eax
setg   %dil
setl   %bl
xor    %eax,%eax
cmp    %esi,%ecx
setg   %al
add    %edi,%eax
xor    %edi,%edi
cmp    %ecx,%esi
setg   %dil
add    %ebx,%edi
mov    0x1c(%rsp),%ecx
mov    0x10(%rsp),%ebx
xor    %esi,%esi
cmp    %ebx,%ecx
setg   %sil
add    %eax,%esi
xor    %edx,%edx
cmp    %ecx,%ebx
setg   %dl
add    %edi,%edx
lea    0xe5d(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbx
ret

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

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