#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 *, int *, int *);
int main() {
  int a[3], b[3];
  scanf("%d %d %d %d %d %d", &a[0], &a[1], &a[2], &b[0], &b[1], &b[2]);
  printf("%d %d", ((a[0] > b[0]) + (a[1] > b[1]) + (a[2] > b[2])),
         ((a[0] < b[0]) + (a[1] < b[1]) + (a[2] < b[2])));
  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    -0x1c(%rbp),%r8
lea    -0x1c(%rbp),%r9
add    $0x4,%r9
lea    -0x1c(%rbp),%rax
add    $0x8,%rax
lea    0xea2(%rip),%rdi
mov    %rax,(%rsp)
call   1040 <scanf@plt>
mov    -0x10(%rbp),%eax
cmp    -0x1c(%rbp),%eax
setg   %al
and    $0x1,%al
movzbl %al,%esi
mov    -0xc(%rbp),%eax
cmp    -0x18(%rbp),%eax
setg   %al
and    $0x1,%al
movzbl %al,%eax
add    %eax,%esi
mov    -0x8(%rbp),%eax
cmp    -0x14(%rbp),%eax
setg   %al
and    $0x1,%al
movzbl %al,%eax
add    %eax,%esi
mov    -0x10(%rbp),%eax
cmp    -0x1c(%rbp),%eax
setl   %al
and    $0x1,%al
movzbl %al,%edx
mov    -0xc(%rbp),%eax
cmp    -0x18(%rbp),%eax
setl   %al
and    $0x1,%al
movzbl %al,%eax
add    %eax,%edx
mov    -0x8(%rbp),%eax
cmp    -0x14(%rbp),%eax
setl   %al
and    $0x1,%al
movzbl %al,%eax
add    %eax,%edx
lea    0xe42(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
sub    $0x28,%rsp
lea    0x20(%rsp),%rdx
lea    0x24(%rsp),%rcx
lea    0x14(%rsp),%r9
lea    0x18(%rsp),%rax
mov    %rax,(%rsp)
lea    0xebd(%rip),%rdi
lea    0x1c(%rsp),%rsi
lea    0x10(%rsp),%r8
call   1040 <scanf@plt>
mov    0x1c(%rsp),%r8d
mov    0x20(%rsp),%ecx
mov    0x24(%rsp),%esi
xor    %r9d,%r9d
xor    %edx,%edx
cmp    0x18(%rsp),%esi
setg   %r9b
setl   %dl
xor    %esi,%esi
xor    %eax,%eax
cmp    0x14(%rsp),%ecx
setg   %sil
setl   %al
xor    %ecx,%ecx
xor    %edi,%edi
cmp    0x10(%rsp),%r8d
setg   %cl
setl   %dil
add    %ecx,%esi
add    %r9d,%esi
add    %edi,%eax
add    %eax,%edx
lea    0xe6e(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x28,%rsp
ret

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

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