#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 */
scalar_t__ abs(int);
int /*<<< orphan*/ printf(char *);
int /*<<< orphan*/ scanf(char *, int *, int *);
int main(void) {
  int ant, bug;
  scanf("%d %d", &ant, &bug);
  if (abs(ant) < abs(bug)) {
    printf("Ant\n");
  } else if (abs(ant) > abs(bug)) {
    printf("Bug\n");
  } else {
    printf("Draw\n");
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xeba(%rip),%rdi
lea    -0x8(%rbp),%rsi
lea    -0xc(%rbp),%rdx
call   1050 <scanf@plt>
mov    -0x8(%rbp),%edi
call   1030 <abs@plt>
mov    %rax,-0x18(%rbp)
mov    -0xc(%rbp),%edi
call   1030 <abs@plt>
mov    %rax,%rcx
mov    -0x18(%rbp),%rax
cmp    %rcx,%rax
jge    1188 <main+0x58>
lea    0xe88(%rip),%rdi
call   1040 <printf@plt>
jmp    11ce <main+0x9e>
mov    -0x8(%rbp),%edi
call   1030 <abs@plt>
mov    %rax,-0x20(%rbp)
mov    -0xc(%rbp),%edi
call   1030 <abs@plt>
mov    %rax,%rcx
mov    -0x20(%rbp),%rax
cmp    %rcx,%rax
jle    11bd <main+0x8d>
lea    0xe58(%rip),%rdi
call   1040 <printf@plt>
jmp    11c9 <main+0x99>
lea    0xe4c(%rip),%rdi
call   1040 <printf@plt>
jmp    11ce <main+0x9e>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
sub    $0x10,%rsp
lea    0xec4(%rip),%rdi
lea    0xc(%rsp),%rsi
lea    0x8(%rsp),%rdx
call   1050 <scanf@plt>
mov    0xc(%rsp),%edi
call   1040 <abs@plt>
mov    %rax,%rbx
mov    0x8(%rsp),%edi
call   1040 <abs@plt>
cmp    %rax,%rbx
jge    116e <main+0x3e>
lea    0xea3(%rip),%rdi
jmp    1198 <main+0x68>
mov    0xc(%rsp),%edi
call   1040 <abs@plt>
mov    %rax,%rbx
mov    0x8(%rsp),%edi
call   1040 <abs@plt>
cmp    %rax,%rbx
lea    0xe7e(%rip),%rax
lea    0xe72(%rip),%rdi
cmovg  %rax,%rdi
call   1030 <puts@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbx
ret

LLVM IR (-O0):
@.str = [6 x i8] c"%d %d\00"
@.str.1 = [5 x i8] c"Ant\0A\00"
@.str.2 = [5 x i8] c"Bug\0A\00"
@.str.3 = [6 x i8] c"Draw\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
store i32 0, i32* %1
%4 = call i32 @scanf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), i32* %2, i32* %3)
%5 = load i32, i32* %2
%6 = call i64 @abs(i32 %5)
%7 = load i32, i32* %3
%8 = call i64 @abs(i32 %7)
%9 = icmp slt i64 %6, %8
br i1 %9, label %10, label %12
10: ; preds = %0
%11 = call i32 @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0))
br label %23
12: ; preds = %0
%13 = load i32, i32* %2
%14 = call i64 @abs(i32 %13)
%15 = load i32, i32* %3
%16 = call i64 @abs(i32 %15)
%17 = icmp sgt i64 %14, %16
br i1 %17, label %18, label %20
18: ; preds = %12
%19 = call i32 @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0))
br label %22
20: ; preds = %12
%21 = call i32 @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.3, i64 0, i64 0))
br label %22
22: ; preds = %20, %18
br label %23
23: ; preds = %22, %10
ret i32 0
}

LLVM IR (-O2):
@.str = [6 x i8] c"%d %d\00"
@str = [5 x i8] c"Draw\00"
@str.4 = [4 x i8] c"Bug\00"
@str.5 = [4 x i8] c"Ant\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = bitcast i32* %1 to i8*
%4 = bitcast i32* %2 to i8*
%5 = call i32 @scanf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), i32* %1, i32* %2)
%6 = load i32, i32* %1
%7 = call i64 @abs(i32 %6)
%8 = load i32, i32* %2
%9 = call i64 @abs(i32 %8)
%10 = icmp slt i64 %7, %9
br i1 %10, label %18, label %11
11: ; preds = %0
%12 = load i32, i32* %1
%13 = call i64 @abs(i32 %12)
%14 = load i32, i32* %2
%15 = call i64 @abs(i32 %14)
%16 = icmp sgt i64 %13, %15
%17 = select i1 %16, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @str.4, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @str, i64 0, i64 0)
br label %18
18: ; preds = %11, %0
%19 = phi i8* [ getelementptr inbounds ([4 x i8], [4 x i8]* @str.5, i64 0, i64 0), %0 ], [ %17, %11 ]
%20 = call i32 @puts(i8* dereferenceable(1) %19)
ret i32 0
}