#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 pow(int, long long);
long long power(long long);
int /*<<< orphan*/ printf(char *);
scalar_t__ scanf(char *, long long *);
int main() {
  long long int n, i, num1, num2, a;
  while (scanf("%lld", &n) && n) {
    num1 = 2 * n + 1;
    a = num1 + 1;
    i = power(a);
    num2 = pow(2, i) - 1;
    if (num1 == num2)
      printf("Bob\n");
    else
      printf("Alice\n");
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xeaa(%rip),%rdi
lea    -0x10(%rbp),%rsi
call   1050 <scanf@plt>
mov    %rax,%rcx
xor    %eax,%eax
cmp    $0x0,%rcx
mov    %al,-0x31(%rbp)
je     117c <main+0x3c>
cmpq   $0x0,-0x10(%rbp)
setne  %al
mov    %al,-0x31(%rbp)
mov    -0x31(%rbp),%al
test   $0x1,%al
jne    118c <main+0x4c>
jmp    11fc <main+0xbc>
mov    -0x10(%rbp),%rax
shl    $0x1,%rax
add    $0x1,%rax
mov    %rax,-0x20(%rbp)
mov    -0x20(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x30(%rbp)
mov    -0x30(%rbp),%rdi
call   1030 <power@plt>
mov    %rax,-0x18(%rbp)
mov    -0x18(%rbp),%rsi
mov    $0x2,%edi
call   1060 <pow@plt>
sub    $0x1,%eax
cltq
mov    %rax,-0x28(%rbp)
mov    -0x20(%rbp),%rax
cmp    -0x28(%rbp),%rax
jne    11eb <main+0xab>
lea    0xe24(%rip),%rdi
call   1040 <printf@plt>
jmp    11f7 <main+0xb7>
lea    0xe18(%rip),%rdi
call   1040 <printf@plt>
jmp    114f <main+0xf>
xor    %eax,%eax
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x10,%rsp
lea    0xeac(%rip),%rdi
lea    0x8(%rsp),%rsi
call   1050 <scanf@plt>
test   %rax,%rax
je     11e0 <main+0xa0>
mov    0x8(%rsp),%rax
test   %rax,%rax
je     11e0 <main+0xa0>
lea    0xe97(%rip),%r15
lea    0xe8a(%rip),%r12
lea    0xe7e(%rip),%r14
lea    0x8(%rsp),%r13
nopw   0x0(%rax,%rax,1)
lea    (%rax,%rax,1),%rbx
add    $0x1,%rbx
lea    (%rax,%rax,1),%rdi
add    $0x2,%rdi
call   1030 <power@plt>
mov    $0x2,%edi
mov    %rax,%rsi
call   1060 <pow@plt>
add    $0xffffffff,%eax
cltq
cmp    %rax,%rbx
mov    %r12,%rdi
cmove  %r15,%rdi
call   1040 <puts@plt>
mov    %r14,%rdi
mov    %r13,%rsi
call   1050 <scanf@plt>
test   %rax,%rax
je     11e0 <main+0xa0>
mov    0x8(%rsp),%rax
test   %rax,%rax
jne    1190 <main+0x50>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
ret

LLVM IR (-O0):
@.str = [5 x i8] c"%lld\00"
@.str.1 = [5 x i8] c"Bob\0A\00"
@.str.2 = [7 x i8] c"Alice\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i64
%3 = alloca i64
%4 = alloca i64
%5 = alloca i64
%6 = alloca i64
store i32 0, i32* %1
br label %7
7: ; preds = %34, %0
%8 = call i64 @scanf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0), i64* %2)
%9 = icmp ne i64 %8, 0
br i1 %9, label %10, label %13
10: ; preds = %7
%11 = load i64, i64* %2
%12 = icmp ne i64 %11, 0
br label %13
13: ; preds = %10, %7
%14 = phi i1 [ false, %7 ], [ %12, %10 ]
br i1 %14, label %15, label %35
15: ; preds = %13
%16 = load i64, i64* %2
%17 = mul nsw i64 2, %16
%18 = add nsw i64 %17, 1
store i64 %18, i64* %4
%19 = load i64, i64* %4
%20 = add nsw i64 %19, 1
store i64 %20, i64* %6
%21 = load i64, i64* %6
%22 = call i64 @power(i64 %21)
store i64 %22, i64* %3
%23 = load i64, i64* %3
%24 = call i32 @pow(i32 2, i64 %23)
%25 = sub nsw i32 %24, 1
%26 = sext i32 %25 to i64
store i64 %26, i64* %5
%27 = load i64, i64* %4
%28 = load i64, i64* %5
%29 = icmp eq i64 %27, %28
br i1 %29, label %30, label %32
30: ; preds = %15
%31 = call i32 @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0))
br label %34
32: ; preds = %15
%33 = call i32 @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0))
br label %34
34: ; preds = %32, %30
br label %7
35: ; preds = %13
ret i32 0
}

LLVM IR (-O2):
@.str = [5 x i8] c"%lld\00"
@str = [6 x i8] c"Alice\00"
@str.3 = [4 x i8] c"Bob\00"
define i32 @main() {
%1 = alloca i64
%2 = bitcast i64* %1 to i8*
%3 = call i64 @scanf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0), i64* %1)
%4 = icmp ne i64 %3, 0
%5 = load i64, i64* %1
%6 = icmp ne i64 %5, 0
%7 = select i1 %4, i1 %6, i1 false
br i1 %7, label %8, label %25
8: ; preds = %0, %8
%9 = phi i64 [ %22, %8 ], [ %5, %0 ]
%10 = shl nsw i64 %9, 1
%11 = or i64 %10, 1
%12 = add i64 %10, 2
%13 = call i64 @power(i64 %12)
%14 = call i32 @pow(i32 2, i64 %13)
%15 = add nsw i32 %14, -1
%16 = sext i32 %15 to i64
%17 = icmp eq i64 %11, %16
%18 = select i1 %17, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @str.3, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @str, i64 0, i64 0)
%19 = call i32 @puts(i8* dereferenceable(1) %18)
%20 = call i64 @scanf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0), i64* %1)
%21 = icmp ne i64 %20, 0
%22 = load i64, i64* %1
%23 = icmp ne i64 %22, 0
%24 = select i1 %21, i1 %23, i1 false
br i1 %24, label %8, label %25
25: ; preds = %8, %0
ret i32 0
}