#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 pointA = 0, pointB = 0;
  int a[3], b[3], i;
  scanf("%d%d%d", &a[0], &a[1], &a[2]);
  scanf("%d%d%d", &b[0], &b[1], &b[2]);
  for (i = 0; i < 3; i++) {
    if (a[i] > b[i]) {
      pointA++;
    } else if (a[i] < b[i]) {
      pointB++;
    }
  }
  printf("%d %d", pointA, pointB);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x0,-0x8(%rbp)
movl   $0x0,-0xc(%rbp)
lea    -0x18(%rbp),%rsi
lea    -0x18(%rbp),%rdx
add    $0x4,%rdx
lea    -0x18(%rbp),%rcx
add    $0x8,%rcx
lea    0xea8(%rip),%rdi
call   1040 <scanf@plt>
lea    -0x24(%rbp),%rsi
lea    -0x24(%rbp),%rdx
add    $0x4,%rdx
lea    -0x24(%rbp),%rcx
add    $0x8,%rcx
lea    0xe88(%rip),%rdi
call   1040 <scanf@plt>
movl   $0x0,-0x28(%rbp)
cmpl   $0x3,-0x28(%rbp)
jge    11e9 <main+0xc9>
movslq -0x28(%rbp),%rax
mov    -0x18(%rbp,%rax,4),%eax
movslq -0x28(%rbp),%rcx
cmp    -0x24(%rbp,%rcx,4),%eax
jle    11b2 <main+0x92>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    11d6 <main+0xb6>
movslq -0x28(%rbp),%rax
mov    -0x18(%rbp,%rax,4),%eax
movslq -0x28(%rbp),%rcx
cmp    -0x24(%rbp,%rcx,4),%eax
jge    11d1 <main+0xb1>
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
jmp    11d6 <main+0xb6>
jmp    11db <main+0xbb>
mov    -0x28(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x28(%rbp)
jmp    1184 <main+0x64>
mov    -0x8(%rbp),%esi
mov    -0xc(%rbp),%edx
lea    0xe11(%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
xor    %ecx,%ecx
xor    %edx,%edx
cmp    0x8(%rsp),%eax
mov    0x18(%rsp),%eax
setg   %cl
setl   %dl
xor    %edi,%edi
xor    %ebx,%ebx
cmp    0xc(%rsp),%eax
setg   %dil
setl   %bl
add    %ecx,%edi
add    %edx,%ebx
mov    0x1c(%rsp),%eax
xor    %esi,%esi
xor    %edx,%edx
cmp    0x10(%rsp),%eax
setg   %sil
setl   %dl
add    %edi,%esi
add    %ebx,%edx
lea    0xe66(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbx
ret

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

LLVM IR (-O2):
@.str = [7 x i8] c"%d%d%d\00"
@.str.1 = [6 x i8] c"%d %d\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 ([7 x i8], [7 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 ([7 x i8], [7 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 = icmp slt i32 %13, %14
%17 = zext i1 %15 to i32
%18 = zext i1 %16 to i32
%19 = load i32, i32* %6
%20 = load i32, i32* %10
%21 = icmp sgt i32 %19, %20
%22 = icmp slt i32 %19, %20
%23 = zext i1 %21 to i32
%24 = add nuw nsw i32 %17, %23
%25 = zext i1 %22 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 = icmp slt i32 %27, %28
%31 = zext i1 %29 to i32
%32 = add nuw nsw i32 %24, %31
%33 = zext i1 %30 to i32
%34 = add nuw nsw i32 %26, %33
%35 = call i32 @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0), i32 %32, i32 %34)
ret i32 0
}