#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 /*<<< orphan*/ scanf(char *, int *, int *, int *, int *, int *, int *);
int main() {
  int CV, CE, CS, FV, FE, FS, CP, FP;
  scanf(" %d %d %d %d %d %d", &CV, &CE, &CS, &FV, &FE, &FS);
  CP = CV * 3 + CE;
  FP = FV * 3 + FE;
  CP > FP   ? printf("C")
  : FP > CP ? printf("F")
  : CS > FS ? printf("C")
  : FS > CS ? printf("F")
            : printf("=");
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xeca(%rip),%rdi
lea    -0x8(%rbp),%rsi
lea    -0xc(%rbp),%rdx
lea    -0x10(%rbp),%rcx
lea    -0x14(%rbp),%r8
lea    -0x18(%rbp),%r9
lea    -0x1c(%rbp),%rax
mov    %rax,(%rsp)
call   1040 <scanf@plt>
imul   $0x3,-0x8(%rbp),%eax
add    -0xc(%rbp),%eax
mov    %eax,-0x20(%rbp)
imul   $0x3,-0x14(%rbp),%eax
add    -0x18(%rbp),%eax
mov    %eax,-0x24(%rbp)
mov    -0x20(%rbp),%eax
cmp    -0x24(%rbp),%eax
jle    1188 <main+0x68>
lea    0xe95(%rip),%rdi
call   1030 <printf@plt>
jmp    1206 <main+0xe6>
mov    -0x24(%rbp),%eax
cmp    -0x20(%rbp),%eax
jle    11a8 <main+0x88>
lea    0xe7a(%rip),%rdi
call   1030 <printf@plt>
mov    %eax,-0x28(%rbp)
jmp    1203 <main+0xe3>
mov    -0x10(%rbp),%eax
cmp    -0x1c(%rbp),%eax
jle    11c8 <main+0xa8>
lea    0xe58(%rip),%rdi
call   1030 <printf@plt>
mov    %eax,-0x2c(%rbp)
jmp    11fd <main+0xdd>
mov    -0x1c(%rbp),%eax
cmp    -0x10(%rbp),%eax
jle    11e8 <main+0xc8>
lea    0xe3a(%rip),%rdi
call   1030 <printf@plt>
mov    %eax,-0x30(%rbp)
jmp    11f7 <main+0xd7>
lea    0xe28(%rip),%rdi
call   1030 <printf@plt>
mov    %eax,-0x30(%rbp)
mov    -0x30(%rbp),%eax
mov    %eax,-0x2c(%rbp)
mov    -0x2c(%rbp),%eax
mov    %eax,-0x28(%rbp)
mov    -0x28(%rbp),%eax
xor    %eax,%eax
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
sub    $0x28,%rsp
lea    0x10(%rsp),%rax
mov    %rax,(%rsp)
lea    0xecc(%rip),%rdi
lea    0x24(%rsp),%rsi
lea    0x20(%rsp),%rdx
lea    0x1c(%rsp),%rcx
lea    0x18(%rsp),%r8
lea    0x14(%rsp),%r9
call   1040 <scanf@plt>
mov    0x24(%rsp),%eax
lea    (%rax,%rax,2),%eax
add    0x20(%rsp),%eax
mov    0x18(%rsp),%ecx
lea    (%rcx,%rcx,2),%ecx
add    0x14(%rsp),%ecx
mov    $0x43,%edi
cmp    %ecx,%eax
jg     1195 <main+0x75>
mov    $0x46,%edi
jl     1195 <main+0x75>
mov    0x1c(%rsp),%eax
mov    0x10(%rsp),%ecx
mov    $0x43,%edi
cmp    %ecx,%eax
jg     1195 <main+0x75>
setl   %al
movzbl %al,%eax
lea    (%rax,%rax,8),%edi
add    $0x3d,%edi
call   1030 <putchar@plt>
xor    %eax,%eax
add    $0x28,%rsp
ret

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

LLVM IR (-O2):
@.str = [19 x i8] c" %d %d %d %d %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 = bitcast i32* %4 to i8*
%11 = bitcast i32* %5 to i8*
%12 = bitcast i32* %6 to i8*
%13 = call i32 @scanf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str, i64 0, i64 0), i32* %1, i32* %2, i32* %3, i32* %4, i32* %5, i32* %6)
%14 = load i32, i32* %1
%15 = mul nsw i32 %14, 3
%16 = load i32, i32* %2
%17 = add nsw i32 %15, %16
%18 = load i32, i32* %4
%19 = mul nsw i32 %18, 3
%20 = load i32, i32* %5
%21 = add nsw i32 %19, %20
%22 = icmp sgt i32 %17, %21
br i1 %22, label %32, label %23
23: ; preds = %0
%24 = icmp sgt i32 %21, %17
br i1 %24, label %32, label %25
25: ; preds = %23
%26 = load i32, i32* %3
%27 = load i32, i32* %6
%28 = icmp sgt i32 %26, %27
br i1 %28, label %32, label %29
29: ; preds = %25
%30 = icmp sgt i32 %27, %26
%31 = select i1 %30, i32 70, i32 61
br label %32
32: ; preds = %29, %25, %23, %0
%33 = phi i32 [ 67, %0 ], [ 70, %23 ], [ 67, %25 ], [ %31, %29 ]
%34 = call i32 @putchar(i32 %33)
ret i32 0
}