#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 a[3], b[3], ascore = 0, dirore = 0, i, k;
  for (i = 0; i < 3; i++)
    scanf("%d", &a[i]);
  for (i = 0; i < 3; i++) {
    scanf("%d", &b[i]);
    k = a[i] > b[i] ? ascore++ : (a[i] < b[i] ? dirore++ : 1);
  }
  printf("%d %d\n", ascore, dirore);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x0,-0x20(%rbp)
movl   $0x0,-0x24(%rbp)
movl   $0x0,-0x28(%rbp)
cmpl   $0x3,-0x28(%rbp)
jge    1177 <main+0x57>
movslq -0x28(%rbp),%rax
lea    -0x10(%rbp),%rsi
shl    $0x2,%rax
add    %rax,%rsi
lea    0xe9c(%rip),%rdi
call   1040 <scanf@plt>
mov    -0x28(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x28(%rbp)
jmp    1144 <main+0x24>
movl   $0x0,-0x28(%rbp)
cmpl   $0x3,-0x28(%rbp)
jge    121c <main+0xfc>
movslq -0x28(%rbp),%rax
lea    -0x1c(%rbp),%rsi
shl    $0x2,%rax
add    %rax,%rsi
lea    0xe62(%rip),%rdi
call   1040 <scanf@plt>
movslq -0x28(%rbp),%rax
mov    -0x10(%rbp,%rax,4),%eax
movslq -0x28(%rbp),%rcx
cmp    -0x1c(%rbp,%rcx,4),%eax
jle    11cc <main+0xac>
mov    -0x20(%rbp),%eax
mov    %eax,%ecx
add    $0x1,%ecx
mov    %ecx,-0x20(%rbp)
mov    %eax,-0x30(%rbp)
jmp    1208 <main+0xe8>
movslq -0x28(%rbp),%rax
mov    -0x10(%rbp,%rax,4),%eax
movslq -0x28(%rbp),%rcx
cmp    -0x1c(%rbp,%rcx,4),%eax
jge    11f5 <main+0xd5>
mov    -0x24(%rbp),%eax
mov    %eax,%ecx
add    $0x1,%ecx
mov    %ecx,-0x24(%rbp)
mov    %eax,-0x34(%rbp)
jmp    1202 <main+0xe2>
mov    $0x1,%eax
mov    %eax,-0x34(%rbp)
jmp    1202 <main+0xe2>
mov    -0x34(%rbp),%eax
mov    %eax,-0x30(%rbp)
mov    -0x30(%rbp),%eax
mov    %eax,-0x2c(%rbp)
mov    -0x28(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x28(%rbp)
jmp    117e <main+0x5e>
mov    -0x20(%rbp),%esi
mov    -0x24(%rbp),%edx
lea    0xdda(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r12
push   %rbx
sub    $0x20,%rsp
lea    0xecd(%rip),%r14
lea    0x14(%rsp),%rsi
mov    %r14,%rdi
call   1040 <scanf@plt>
lea    0x18(%rsp),%rsi
mov    %r14,%rdi
call   1040 <scanf@plt>
lea    0x1c(%rsp),%rsi
mov    %r14,%rdi
call   1040 <scanf@plt>
lea    0x8(%rsp),%rsi
mov    %r14,%rdi
call   1040 <scanf@plt>
mov    0x14(%rsp),%eax
xor    %r15d,%r15d
xor    %r12d,%r12d
cmp    0x8(%rsp),%eax
setg   %r15b
setl   %r12b
lea    0xc(%rsp),%rsi
mov    %r14,%rdi
call   1040 <scanf@plt>
mov    0x18(%rsp),%eax
xor    %ebp,%ebp
xor    %ebx,%ebx
cmp    0xc(%rsp),%eax
setg   %bpl
setl   %bl
add    %r12d,%ebx
add    %r15d,%ebp
lea    0x10(%rsp),%rsi
mov    %r14,%rdi
call   1040 <scanf@plt>
mov    0x1c(%rsp),%eax
xor    %esi,%esi
xor    %edx,%edx
cmp    0x10(%rsp),%eax
setg   %sil
setl   %dl
add    %ebx,%edx
add    %ebp,%esi
lea    0xe35(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbx
pop    %r12
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\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
%7 = alloca i32
store i32 0, i32* %1
store i32 0, i32* %4
store i32 0, i32* %5
store i32 0, i32* %6
br label %8
8: ; preds = %16, %0
%9 = load i32, i32* %6
%10 = icmp slt i32 %9, 3
br i1 %10, label %11, label %19
11: ; preds = %8
%12 = load i32, i32* %6
%13 = sext i32 %12 to i64
%14 = getelementptr inbounds [3 x i32], [3 x i32]* %2, i64 0, i64 %13
%15 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32* %14)
br label %16
16: ; preds = %11
%17 = load i32, i32* %6
%18 = add nsw i32 %17, 1
store i32 %18, i32* %6
br label %8
19: ; preds = %8
store i32 0, i32* %6
br label %20
20: ; preds = %58, %19
%21 = load i32, i32* %6
%22 = icmp slt i32 %21, 3
br i1 %22, label %23, label %61
23: ; preds = %20
%24 = load i32, i32* %6
%25 = sext i32 %24 to i64
%26 = getelementptr inbounds [3 x i32], [3 x i32]* %3, i64 0, i64 %25
%27 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32* %26)
%28 = load i32, i32* %6
%29 = sext i32 %28 to i64
%30 = getelementptr inbounds [3 x i32], [3 x i32]* %2, i64 0, i64 %29
%31 = load i32, i32* %30
%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 = icmp sgt i32 %31, %35
br i1 %36, label %37, label %40
37: ; preds = %23
%38 = load i32, i32* %4
%39 = add nsw i32 %38, 1
store i32 %39, i32* %4
br label %56
40: ; preds = %23
%41 = load i32, i32* %6
%42 = sext i32 %41 to i64
%43 = getelementptr inbounds [3 x i32], [3 x i32]* %2, i64 0, i64 %42
%44 = load i32, i32* %43
%45 = load i32, i32* %6
%46 = sext i32 %45 to i64
%47 = getelementptr inbounds [3 x i32], [3 x i32]* %3, i64 0, i64 %46
%48 = load i32, i32* %47
%49 = icmp slt i32 %44, %48
br i1 %49, label %50, label %53
50: ; preds = %40
%51 = load i32, i32* %5
%52 = add nsw i32 %51, 1
store i32 %52, i32* %5
br label %54
53: ; preds = %40
br label %54
54: ; preds = %53, %50
%55 = phi i32 [ %51, %50 ], [ 1, %53 ]
br label %56
56: ; preds = %54, %37
%57 = phi i32 [ %38, %37 ], [ %55, %54 ]
store i32 %57, i32* %7
br label %58
58: ; preds = %56
%59 = load i32, i32* %6
%60 = add nsw i32 %59, 1
store i32 %60, i32* %6
br label %20
61: ; preds = %20
%62 = load i32, i32* %4
%63 = load i32, i32* %5
%64 = call i32 @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0), i32 %62, i32 %63)
ret i32 0
}

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