#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 a0;
  int a1;
  int a2;
  scanf("%d %d %d", &a0, &a1, &a2);
  int b0;
  int b1;
  int b2;
  scanf("%d %d %d", &b0, &b1, &b2);
  int score_a = 0;
  int score_b = 0;
  if (a0 > b0) {
    score_a++;
  } else if (a0 < b0) {
    score_b++;
  }
  if (a1 > b1) {
    score_a++;
  } else if (a1 < b1) {
    score_b++;
  }
  if (a2 > b2) {
    score_a++;
  } else if (a2 < b2) {
    score_b++;
  }
  printf("%d %d", score_a, score_b);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%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>
lea    0xeb2(%rip),%rdi
lea    -0x14(%rbp),%rsi
lea    -0x18(%rbp),%rdx
lea    -0x1c(%rbp),%rcx
call   1040 <scanf@plt>
movl   $0x0,-0x20(%rbp)
movl   $0x0,-0x24(%rbp)
mov    -0x8(%rbp),%eax
cmp    -0x14(%rbp),%eax
jle    1187 <main+0x67>
mov    -0x20(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x20(%rbp)
jmp    11a1 <main+0x81>
mov    -0x8(%rbp),%eax
cmp    -0x14(%rbp),%eax
jge    119c <main+0x7c>
mov    -0x24(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x24(%rbp)
jmp    11a1 <main+0x81>
mov    -0xc(%rbp),%eax
cmp    -0x18(%rbp),%eax
jle    11bb <main+0x9b>
mov    -0x20(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x20(%rbp)
jmp    11d5 <main+0xb5>
mov    -0xc(%rbp),%eax
cmp    -0x18(%rbp),%eax
jge    11d0 <main+0xb0>
mov    -0x24(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x24(%rbp)
jmp    11d5 <main+0xb5>
mov    -0x10(%rbp),%eax
cmp    -0x1c(%rbp),%eax
jle    11ef <main+0xcf>
mov    -0x20(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x20(%rbp)
jmp    1209 <main+0xe9>
mov    -0x10(%rbp),%eax
cmp    -0x1c(%rbp),%eax
jge    1204 <main+0xe4>
mov    -0x24(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x24(%rbp)
jmp    1209 <main+0xe9>
mov    -0x20(%rbp),%esi
mov    -0x24(%rbp),%edx
lea    0xded(%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    0xed4(%rip),%rbx
lea    0x1c(%rsp),%rsi
lea    0x18(%rsp),%rdx
lea    0x14(%rsp),%rcx
mov    %rbx,%rdi
call   1040 <scanf@plt>
lea    0x10(%rsp),%rsi
lea    0xc(%rsp),%rdx
lea    0x8(%rsp),%rcx
mov    %rbx,%rdi
call   1040 <scanf@plt>
mov    0x1c(%rsp),%eax
xor    %ecx,%ecx
xor    %edx,%edx
cmp    0x10(%rsp),%eax
setg   %cl
setl   %dl
mov    0x18(%rsp),%eax
lea    0x1(%rcx),%edi
lea    0x1(%rdx),%ebx
cmp    0xc(%rsp),%eax
cmovge %edx,%ebx
cmovle %ecx,%edi
cmovg  %edx,%ebx
mov    0x14(%rsp),%eax
xor    %esi,%esi
xor    %edx,%edx
cmp    0x8(%rsp),%eax
setg   %sil
setl   %dl
add    %edi,%esi
add    %ebx,%edx
lea    0xe62(%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 = [6 x i8] c"%d %d\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32
%6 = alloca i32
%7 = alloca i32
%8 = alloca i32
%9 = alloca i32
store i32 0, i32* %1
%10 = call i32 @scanf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0), i32* %2, i32* %3, i32* %4)
%11 = call i32 @scanf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0), i32* %5, i32* %6, i32* %7)
store i32 0, i32* %8
store i32 0, i32* %9
%12 = load i32, i32* %2
%13 = load i32, i32* %5
%14 = icmp sgt i32 %12, %13
br i1 %14, label %15, label %18
15: ; preds = %0
%16 = load i32, i32* %8
%17 = add nsw i32 %16, 1
store i32 %17, i32* %8
br label %26
18: ; preds = %0
%19 = load i32, i32* %2
%20 = load i32, i32* %5
%21 = icmp slt i32 %19, %20
br i1 %21, label %22, label %25
22: ; preds = %18
%23 = load i32, i32* %9
%24 = add nsw i32 %23, 1
store i32 %24, i32* %9
br label %25
25: ; preds = %22, %18
br label %26
26: ; preds = %25, %15
%27 = load i32, i32* %3
%28 = load i32, i32* %6
%29 = icmp sgt i32 %27, %28
br i1 %29, label %30, label %33
30: ; preds = %26
%31 = load i32, i32* %8
%32 = add nsw i32 %31, 1
store i32 %32, i32* %8
br label %41
33: ; preds = %26
%34 = load i32, i32* %3
%35 = load i32, i32* %6
%36 = icmp slt i32 %34, %35
br i1 %36, label %37, label %40
37: ; preds = %33
%38 = load i32, i32* %9
%39 = add nsw i32 %38, 1
store i32 %39, i32* %9
br label %40
40: ; preds = %37, %33
br label %41
41: ; preds = %40, %30
%42 = load i32, i32* %4
%43 = load i32, i32* %7
%44 = icmp sgt i32 %42, %43
br i1 %44, label %45, label %48
45: ; preds = %41
%46 = load i32, i32* %8
%47 = add nsw i32 %46, 1
store i32 %47, i32* %8
br label %56
48: ; preds = %41
%49 = load i32, i32* %4
%50 = load i32, i32* %7
%51 = icmp slt i32 %49, %50
br i1 %51, label %52, label %55
52: ; preds = %48
%53 = load i32, i32* %9
%54 = add nsw i32 %53, 1
store i32 %54, i32* %9
br label %55
55: ; preds = %52, %48
br label %56
56: ; preds = %55, %45
%57 = load i32, i32* %8
%58 = load i32, i32* %9
%59 = call i32 @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0), i32 %57, i32 %58)
ret i32 0
}

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