#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 main() {
  int counter, n = 0, num;
  long number;
  scanf("%d", &num);
  for (counter = 0; counter < num; counter++) {
    scanf("%d", &number);
    while (number > 0) {
      if (n == 0) {
        n = 1;
      } else {
        n = 0;
      }
      if (number % 2 == 0) {
        number /= 2;
      } else if (number % 2 != 0) {
        number--;
      }
    }
    if (n == 1) {
      printf("Aayush\n");
    } else {
      printf("Akash\n");
    }
    n = 0;
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x0,-0xc(%rbp)
lea    0xec3(%rip),%rdi
lea    -0x10(%rbp),%rsi
mov    $0x0,%al
call   1040 <scanf@plt>
movl   $0x0,-0x8(%rbp)
mov    -0x8(%rbp),%eax
cmp    -0x10(%rbp),%eax
jge    122e <main+0x10e>
lea    0xe9e(%rip),%rdi
lea    -0x18(%rbp),%rsi
mov    $0x0,%al
call   1040 <scanf@plt>
cmpq   $0x0,-0x18(%rbp)
jle    11f2 <main+0xd2>
cmpl   $0x0,-0xc(%rbp)
jne    118e <main+0x6e>
movl   $0x1,-0xc(%rbp)
jmp    1195 <main+0x75>
movl   $0x0,-0xc(%rbp)
mov    -0x18(%rbp),%rax
mov    $0x2,%ecx
cqto
idiv   %rcx
cmp    $0x0,%rdx
jne    11c4 <main+0xa4>
mov    -0x18(%rbp),%rax
mov    $0x2,%ecx
cqto
idiv   %rcx
mov    %rax,-0x18(%rbp)
jmp    11ed <main+0xcd>
mov    -0x18(%rbp),%rax
mov    $0x2,%ecx
cqto
idiv   %rcx
cmp    $0x0,%rdx
je     11e8 <main+0xc8>
mov    -0x18(%rbp),%rax
add    $0xffffffffffffffff,%rax
mov    %rax,-0x18(%rbp)
jmp    11ed <main+0xcd>
jmp    116d <main+0x4d>
cmpl   $0x1,-0xc(%rbp)
jne    120d <main+0xed>
lea    0xe00(%rip),%rdi
call   1030 <printf@plt>
jmp    1219 <main+0xf9>
lea    0xdf7(%rip),%rdi
call   1030 <printf@plt>
movl   $0x0,-0xc(%rbp)
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    114f <main+0x2f>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r12
push   %rbx
sub    $0x10,%rsp
lea    0xecd(%rip),%rdi
lea    0x4(%rsp),%rsi
xor    %eax,%eax
call   1040 <scanf@plt>
cmpl   $0x0,0x4(%rsp)
jle    11cb <main+0xab>
lea    0xeaf(%rip),%r14
lea    0x8(%rsp),%rbx
lea    0xeac(%rip),%r15
lea    0xe9f(%rip),%r12
xor    %ebp,%ebp
jmp    1181 <main+0x61>
nopl   0x0(%rax,%rax,1)
mov    %r12,%rdi
call   1030 <puts@plt>
add    $0x1,%ebp
cmp    0x4(%rsp),%ebp
jge    11cb <main+0xab>
mov    %r14,%rdi
mov    %rbx,%rsi
xor    %eax,%eax
call   1040 <scanf@plt>
mov    0x8(%rsp),%rax
test   %rax,%rax
jle    1170 <main+0x50>
xor    %ecx,%ecx
nopw   0x0(%rax,%rax,1)
mov    %ecx,%edx
xor    $0x1,%ecx
lea    -0x1(%rax),%rsi
mov    %rax,%rdi
shr    %rdi
test   $0x1,%al
mov    %rdi,%rax
cmovne %rsi,%rax
test   %rax,%rax
jne    11a0 <main+0x80>
mov    %rax,0x8(%rsp)
mov    %r15,%rdi
test   %edx,%edx
jne    1170 <main+0x50>
jmp    1173 <main+0x53>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [3 x i8] c"%d\00"
@.str.1 = [8 x i8] c"Aayush\0A\00"
@.str.2 = [7 x i8] c"Akash\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32
%5 = alloca i64
store i32 0, i32* %1
store i32 0, i32* %3
%6 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32* %4)
store i32 0, i32* %2
br label %7
7: ; preds = %45, %0
%8 = load i32, i32* %2
%9 = load i32, i32* %4
%10 = icmp slt i32 %8, %9
br i1 %10, label %11, label %48
11: ; preds = %7
%12 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i64* %5)
br label %13
13: ; preds = %36, %11
%14 = load i64, i64* %5
%15 = icmp sgt i64 %14, 0
br i1 %15, label %16, label %37
16: ; preds = %13
%17 = load i32, i32* %3
%18 = icmp eq i32 %17, 0
br i1 %18, label %19, label %20
19: ; preds = %16
store i32 1, i32* %3
br label %21
20: ; preds = %16
store i32 0, i32* %3
br label %21
21: ; preds = %20, %19
%22 = load i64, i64* %5
%23 = srem i64 %22, 2
%24 = icmp eq i64 %23, 0
br i1 %24, label %25, label %28
25: ; preds = %21
%26 = load i64, i64* %5
%27 = sdiv i64 %26, 2
store i64 %27, i64* %5
br label %36
28: ; preds = %21
%29 = load i64, i64* %5
%30 = srem i64 %29, 2
%31 = icmp ne i64 %30, 0
br i1 %31, label %32, label %35
32: ; preds = %28
%33 = load i64, i64* %5
%34 = add nsw i64 %33, -1
store i64 %34, i64* %5
br label %35
35: ; preds = %32, %28
br label %36
36: ; preds = %35, %25
br label %13
37: ; preds = %13
%38 = load i32, i32* %3
%39 = icmp eq i32 %38, 1
br i1 %39, label %40, label %42
40: ; preds = %37
%41 = call i32 @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.1, i64 0, i64 0))
br label %44
42: ; preds = %37
%43 = call i32 @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0))
br label %44
44: ; preds = %42, %40
store i32 0, i32* %3
br label %45
45: ; preds = %44
%46 = load i32, i32* %2
%47 = add nsw i32 %46, 1
store i32 %47, i32* %2
br label %7
48: ; preds = %7
ret i32 0
}

LLVM IR (-O2):
@.str = [3 x i8] c"%d\00"
@str = [6 x i8] c"Akash\00"
@str.3 = [7 x i8] c"Aayush\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i64
%3 = bitcast i32* %1 to i8*
%4 = bitcast i64* %2 to i8*
%5 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32* %1)
%6 = load i32, i32* %1
%7 = icmp sgt i32 %6, 0
br i1 %7, label %8, label %32
8: ; preds = %0, %26
%9 = phi i32 [ %29, %26 ], [ 0, %0 ]
%10 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i64* %2)
%11 = load i64, i64* %2
%12 = icmp sgt i64 %11, 0
br i1 %12, label %13, label %25
13: ; preds = %8, %13
%14 = phi i32 [ %16, %13 ], [ 0, %8 ]
%15 = phi i64 [ %21, %13 ], [ %11, %8 ]
%16 = xor i32 %14, 1
%17 = and i64 %15, 1
%18 = icmp eq i64 %17, 0
%19 = add nsw i64 %15, -1
%20 = lshr i64 %15, 1
%21 = select i1 %18, i64 %20, i64 %19
%22 = icmp eq i64 %21, 0
br i1 %22, label %23, label %13
23: ; preds = %13
store i64 %21, i64* %2
%24 = icmp eq i32 %14, 0
br i1 %24, label %26, label %25
25: ; preds = %8, %23
br label %26
26: ; preds = %23, %25
%27 = phi i8* [ getelementptr inbounds ([6 x i8], [6 x i8]* @str, i64 0, i64 0), %25 ], [ getelementptr inbounds ([7 x i8], [7 x i8]* @str.3, i64 0, i64 0), %23 ]
%28 = call i32 @puts(i8* dereferenceable(1) %27)
%29 = add nuw nsw i32 %9, 1
%30 = load i32, i32* %1
%31 = icmp slt i32 %29, %30
br i1 %31, label %8, label %32
32: ; preds = %26, %0
ret i32 0
}