#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 *, char *);
int /*<<< orphan*/ scanf(char *, int *, int *, int *, int *, int *, int *);
int main(int argc, char *noargs[]) {
  int vc, ec, sc, vf, ef, sf, pf, pc;
  char *res;
  scanf("%d %d %d %d %d %d", &vc, &ec, &sc, &vf, &ef, &sf);
  pc = 3 * vc + ec;
  pf = 3 * vf + ef;
  if ((pc > pf) || ((pc == pf) && (sc > sf)))
    res = "C";
  else if ((pc < pf) || ((pc == pf) && (sc < sf)))
    res = "F";
  else
    res = "=";
  printf("%s\n", res);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
lea    0xec3(%rip),%rdi
lea    -0x14(%rbp),%rsi
lea    -0x18(%rbp),%rdx
lea    -0x1c(%rbp),%rcx
lea    -0x20(%rbp),%r8
lea    -0x24(%rbp),%r9
lea    -0x28(%rbp),%rax
mov    %rax,(%rsp)
call   1040 <scanf@plt>
imul   $0x3,-0x14(%rbp),%eax
add    -0x18(%rbp),%eax
mov    %eax,-0x30(%rbp)
imul   $0x3,-0x20(%rbp),%eax
add    -0x24(%rbp),%eax
mov    %eax,-0x2c(%rbp)
mov    -0x30(%rbp),%eax
cmp    -0x2c(%rbp),%eax
jg     1196 <main+0x76>
mov    -0x30(%rbp),%eax
cmp    -0x2c(%rbp),%eax
jne    11a6 <main+0x86>
mov    -0x1c(%rbp),%eax
cmp    -0x28(%rbp),%eax
jle    11a6 <main+0x86>
lea    0xe75(%rip),%rax
mov    %rax,-0x38(%rbp)
jmp    11ea <main+0xca>
mov    -0x30(%rbp),%eax
cmp    -0x2c(%rbp),%eax
jl     11ca <main+0xaa>
mov    -0x30(%rbp),%eax
cmp    -0x2c(%rbp),%eax
jne    11da <main+0xba>
mov    -0x1c(%rbp),%eax
cmp    -0x28(%rbp),%eax
jge    11da <main+0xba>
lea    0xe43(%rip),%rax
mov    %rax,-0x38(%rbp)
jmp    11e5 <main+0xc5>
lea    0xe35(%rip),%rax
mov    %rax,-0x38(%rbp)
jmp    11ea <main+0xca>
mov    -0x38(%rbp),%rsi
lea    0xe23(%rip),%rdi
call   1030 <printf@plt>
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
lea    0xea3(%rip),%rsi
cmp    %ecx,%eax
jg     1191 <main+0x71>
jne    117f <main+0x5f>
mov    0x10(%rsp),%eax
cmp    %eax,0x1c(%rsp)
jg     1191 <main+0x71>
jge    118a <main+0x6a>
lea    0xe8c(%rip),%rsi
jmp    1191 <main+0x71>
lea    0xe85(%rip),%rsi
lea    0xe80(%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 = [2 x i8] c"C\00"
@.str.2 = [2 x i8] c"F\00"
@.str.3 = [2 x i8] c"=\00"
@.str.4 = [4 x i8] c"%s\0A\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i32
%7 = alloca i32
%8 = alloca i32
%9 = alloca i32
%10 = alloca i32
%11 = alloca i32
%12 = alloca i32
%13 = alloca i32
%14 = alloca i8*
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%15 = call i32 @scanf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str, i64 0, i64 0), i32* %6, i32* %7, i32* %8, i32* %9, i32* %10, i32* %11)
%16 = load i32, i32* %6
%17 = mul nsw i32 3, %16
%18 = load i32, i32* %7
%19 = add nsw i32 %17, %18
store i32 %19, i32* %13
%20 = load i32, i32* %9
%21 = mul nsw i32 3, %20
%22 = load i32, i32* %10
%23 = add nsw i32 %21, %22
store i32 %23, i32* %12
%24 = load i32, i32* %13
%25 = load i32, i32* %12
%26 = icmp sgt i32 %24, %25
br i1 %26, label %35, label %27
27: ; preds = %2
%28 = load i32, i32* %13
%29 = load i32, i32* %12
%30 = icmp eq i32 %28, %29
br i1 %30, label %31, label %36
31: ; preds = %27
%32 = load i32, i32* %8
%33 = load i32, i32* %11
%34 = icmp sgt i32 %32, %33
br i1 %34, label %35, label %36
35: ; preds = %31, %2
store i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0), i8** %14
br label %51
36: ; preds = %31, %27
%37 = load i32, i32* %13
%38 = load i32, i32* %12
%39 = icmp slt i32 %37, %38
br i1 %39, label %48, label %40
40: ; preds = %36
%41 = load i32, i32* %13
%42 = load i32, i32* %12
%43 = icmp eq i32 %41, %42
br i1 %43, label %44, label %49
44: ; preds = %40
%45 = load i32, i32* %8
%46 = load i32, i32* %11
%47 = icmp slt i32 %45, %46
br i1 %47, label %48, label %49
48: ; preds = %44, %36
store i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0), i8** %14
br label %50
49: ; preds = %44, %40
store i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0), i8** %14
br label %50
50: ; preds = %49, %48
br label %51
51: ; preds = %50, %35
%52 = load i8*, i8** %14
%53 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), i8* %52)
ret i32 0
}

LLVM IR (-O2):
@.str = [18 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"
@.str.4 = [4 x i8] c"%s\0A\00"
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32
%6 = alloca i32
%7 = alloca i32
%8 = alloca i32
%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 = bitcast i32* %7 to i8*
%14 = bitcast i32* %8 to i8*
%15 = call i32 @scanf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str, i64 0, i64 0), i32* %3, i32* %4, i32* %5, i32* %6, i32* %7, i32* %8)
%16 = load i32, i32* %3
%17 = mul nsw i32 %16, 3
%18 = load i32, i32* %4
%19 = add nsw i32 %17, %18
%20 = load i32, i32* %6
%21 = mul nsw i32 %20, 3
%22 = load i32, i32* %7
%23 = add nsw i32 %21, %22
%24 = icmp sgt i32 %19, %23
br i1 %24, label %36, label %25
25: ; preds = %2
%26 = icmp eq i32 %19, %23
br i1 %26, label %27, label %31
27: ; preds = %25
%28 = load i32, i32* %5
%29 = load i32, i32* %8
%30 = icmp sgt i32 %28, %29
br i1 %30, label %36, label %33
31: ; preds = %25
%32 = icmp slt i32 %19, %23
br i1 %32, label %36, label %35
33: ; preds = %27
%34 = icmp slt i32 %28, %29
br i1 %34, label %36, label %35
35: ; preds = %31, %33
br label %36
36: ; preds = %31, %33, %2, %27, %35
%37 = phi i8* [ getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0), %35 ], [ getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0), %27 ], [ getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0), %2 ], [ getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0), %33 ], [ getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0), %31 ]
%38 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), i8* %37)
ret i32 0
}