#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 *, float *, float *, float *, float *);
int main() {
  float A, G, Ra, Rg;
  scanf(" %f %f %f %f", &A, &G, &Ra, &Rg);
  Ra / A > Rg / G ? printf("A") : printf("G");
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%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
call   1040 <scanf@plt>
movss  -0x10(%rbp),%xmm0
divss  -0x8(%rbp),%xmm0
movss  -0x14(%rbp),%xmm1
divss  -0xc(%rbp),%xmm1
ucomiss %xmm1,%xmm0
jbe    1179 <main+0x59>
lea    0xe9e(%rip),%rdi
call   1030 <printf@plt>
jmp    1185 <main+0x65>
lea    0xe8f(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
sub    $0x18,%rsp
lea    0xed5(%rip),%rdi
lea    0x14(%rsp),%rsi
lea    0x10(%rsp),%rdx
lea    0xc(%rsp),%rcx
lea    0x8(%rsp),%r8
call   1040 <scanf@plt>
movss  0x8(%rsp),%xmm0
movss  0xc(%rsp),%xmm1
unpcklps %xmm0,%xmm1
movss  0x10(%rsp),%xmm0
movss  0x14(%rsp),%xmm2
unpcklps %xmm0,%xmm2
divps  %xmm2,%xmm1
movaps %xmm1,%xmm0
shufps $0x55,%xmm1,%xmm0
ucomiss %xmm0,%xmm1
mov    $0x41,%eax
mov    $0x47,%edi
cmova  %eax,%edi
call   1030 <putchar@plt>
xor    %eax,%eax
add    $0x18,%rsp
ret

LLVM IR (-O0):
@.str = [13 x i8] c" %f %f %f %f\00"
@.str.1 = [2 x i8] c"A\00"
@.str.2 = [2 x i8] c"G\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca float
%3 = alloca float
%4 = alloca float
%5 = alloca float
store i32 0, i32* %1
%6 = call i32 @scanf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i64 0, i64 0), float* %2, float* %3, float* %4, float* %5)
%7 = load float, float* %4
%8 = load float, float* %2
%9 = fdiv float %7, %8
%10 = load float, float* %5
%11 = load float, float* %3
%12 = fdiv float %10, %11
%13 = fcmp ogt float %9, %12
br i1 %13, label %14, label %16
14: ; preds = %0
%15 = call i32 @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
br label %18
16: ; preds = %0
%17 = call i32 @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
br label %18
18: ; preds = %16, %14
%19 = phi i32 [ %15, %14 ], [ %17, %16 ]
ret i32 0
}

LLVM IR (-O2):
@.str = [13 x i8] c" %f %f %f %f\00"
define i32 @main() {
%1 = alloca float
%2 = alloca float
%3 = alloca float
%4 = alloca float
%5 = bitcast float* %1 to i8*
%6 = bitcast float* %2 to i8*
%7 = bitcast float* %3 to i8*
%8 = bitcast float* %4 to i8*
%9 = call i32 @scanf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i64 0, i64 0), float* %1, float* %2, float* %3, float* %4)
%10 = load float, float* %3
%11 = load float, float* %1
%12 = load float, float* %4
%13 = load float, float* %2
%14 = insertelement <2 x float> poison, float %10, i64 0
%15 = insertelement <2 x float> %14, float %12, i64 1
%16 = insertelement <2 x float> poison, float %11, i64 0
%17 = insertelement <2 x float> %16, float %13, i64 1
%18 = fdiv <2 x float> %15, %17
%19 = extractelement <2 x float> %18, i64 0
%20 = extractelement <2 x float> %18, i64 1
%21 = fcmp ogt float %19, %20
%22 = select i1 %21, i32 65, i32 71
%23 = call i32 @putchar(i32 %22)
ret i32 0
}