#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 *, ...);
unsigned long long sqrtl(unsigned long long);
int main() {
  unsigned int t;
  unsigned long long days[100];
  scanf("%d", &t);
  for (unsigned int i = 0; i < t; i++) {
    unsigned long long day;
    scanf("%llu", &day);
    days[i] = day;
  }
  for (unsigned int i = 0; i < t; i++) {
    unsigned long long middle = sqrtl(days[i]);
    if (1 == middle) {
      printf("odd\n");
    } else {
      if (0 == middle % 2) {
        printf("even\n");
      } else {
        printf("odd\n");
      }
    }
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x350,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xeb7(%rip),%rdi
lea    -0x8(%rbp),%rsi
mov    $0x0,%al
call   1050 <scanf@plt>
movl   $0x0,-0x334(%rbp)
mov    -0x334(%rbp),%eax
cmp    -0x8(%rbp),%eax
jae    11ab <main+0x7b>
lea    0xe8f(%rip),%rdi
lea    -0x340(%rbp),%rsi
mov    $0x0,%al
call   1050 <scanf@plt>
mov    -0x340(%rbp),%rcx
mov    -0x334(%rbp),%eax
mov    %rcx,-0x330(%rbp,%rax,8)
ff
mov    -0x334(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x334(%rbp)
jmp    115e <main+0x2e>
movl   $0x0,-0x344(%rbp)
mov    -0x344(%rbp),%eax
cmp    -0x8(%rbp),%eax
jae    1252 <main+0x122>
mov    -0x344(%rbp),%eax
mov    -0x330(%rbp,%rax,8),%rdi
ff
call   1040 <sqrtl@plt>
mov    %rax,-0x350(%rbp)
mov    $0x1,%eax
cmp    -0x350(%rbp),%rax
jne    1201 <main+0xd1>
lea    0xe11(%rip),%rdi
call   1030 <printf@plt>
jmp    1239 <main+0x109>
mov    -0x350(%rbp),%rcx
and    $0x1,%rcx
xor    %eax,%eax
cmp    %rcx,%rax
jne    1228 <main+0xf8>
lea    0xdef(%rip),%rdi
call   1030 <printf@plt>
jmp    1234 <main+0x104>
lea    0xdd9(%rip),%rdi
call   1030 <printf@plt>
jmp    1239 <main+0x109>
jmp    123e <main+0x10e>
mov    -0x344(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x344(%rbp)
jmp    11b5 <main+0x85>
xor    %eax,%eax
add    $0x350,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r15
push   %r14
push   %rbx
sub    $0x330,%rsp
lea    0xebd(%rip),%rdi
lea    0x4(%rsp),%rsi
xor    %eax,%eax
call   1050 <scanf@plt>
cmpl   $0x0,0x4(%rsp)
je     11dd <main+0xad>
lea    0xea2(%rip),%r14
lea    0x8(%rsp),%r15
xor    %ebx,%ebx
nopl   0x0(%rax,%rax,1)
mov    %r14,%rdi
mov    %r15,%rsi
xor    %eax,%eax
call   1050 <scanf@plt>
mov    0x8(%rsp),%rax
mov    %rax,0x10(%rsp,%rbx,8)
add    $0x1,%rbx
mov    0x4(%rsp),%eax
cmp    %rax,%rbx
jb     1170 <main+0x40>
test   %eax,%eax
je     11dd <main+0xad>
xor    %ebx,%ebx
lea    0xe67(%rip),%r14
lea    0xe65(%rip),%r15
nopl   0x0(%rax,%rax,1)
mov    0x10(%rsp,%rbx,8),%rdi
call   1040 <sqrtl@plt>
test   $0x1,%al
mov    %r15,%rdi
cmove  %r14,%rdi
cmp    $0x1,%rax
cmove  %r15,%rdi
call   1030 <puts@plt>
add    $0x1,%rbx
mov    0x4(%rsp),%eax
cmp    %rax,%rbx
jb     11b0 <main+0x80>
xor    %eax,%eax
add    $0x330,%rsp
pop    %rbx
pop    %r14
pop    %r15
ret

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

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