#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 *, ...);
scalar_t__ strcmp(char *, char *);
int main(void) {
  int t, n;
  char c[4];
  int i, ar[55];
  scanf("%d", &t);
  while (t--) {
    scanf("%d", &n);
    scanf("%s", c);
    for (i = 0; i < n; i++) {
      scanf("%d", &ar[i]);
    }
    if (strcmp(c, "Dee") == 0 && n == 1 && ar[0] % 2 == 0)
      printf("Dee\n");
    else
      printf("Dum\n");
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0xf0,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xeb7(%rip),%rdi
lea    -0x8(%rbp),%rsi
mov    $0x0,%al
call   1050 <scanf@plt>
mov    -0x8(%rbp),%eax
mov    %eax,%ecx
add    $0xffffffff,%ecx
mov    %ecx,-0x8(%rbp)
cmp    $0x0,%eax
je     122a <main+0xfa>
lea    0xe91(%rip),%rdi
lea    -0xc(%rbp),%rsi
mov    $0x0,%al
call   1050 <scanf@plt>
lea    -0x10(%rbp),%rsi
lea    0xe7e(%rip),%rdi
mov    $0x0,%al
call   1050 <scanf@plt>
movl   $0x0,-0x14(%rbp)
mov    -0x14(%rbp),%eax
cmp    -0xc(%rbp),%eax
jge    11cd <main+0x9d>
movslq -0x14(%rbp),%rax
lea    -0xf0(%rbp),%rsi
shl    $0x2,%rax
add    %rax,%rsi
lea    0xe48(%rip),%rdi
mov    $0x0,%al
call   1050 <scanf@plt>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    1193 <main+0x63>
lea    -0x10(%rbp),%rdi
lea    0xe2e(%rip),%rsi
call   1040 <strcmp@plt>
cmp    $0x0,%rax
jne    1219 <main+0xe9>
cmpl   $0x1,-0xc(%rbp)
jne    1219 <main+0xe9>
mov    -0xf0(%rbp),%eax
mov    $0x2,%ecx
cltd
idiv   %ecx
cmp    $0x0,%edx
jne    1219 <main+0xe9>
lea    0xdfb(%rip),%rdi
call   1030 <printf@plt>
jmp    1225 <main+0xf5>
lea    0xdef(%rip),%rdi
call   1030 <printf@plt>
jmp    1154 <main+0x24>
xor    %eax,%eax
add    $0xf0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0xf8,%rsp
lea    0xeb8(%rip),%rdi
lea    0x8(%rsp),%rsi
xor    %eax,%eax
call   1050 <scanf@plt>
subl   $0x1,0x8(%rsp)
jae    116f <main+0x3f>
xor    %eax,%eax
add    $0xf8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
lea    0xe8a(%rip),%rbx
lea    0xe86(%rip),%r15
lea    0xc(%rsp),%r12
lea    0xe81(%rip),%r13
jmp    11a3 <main+0x73>
nopl   0x0(%rax,%rax,1)
lea    0xe6f(%rip),%rdi
call   1030 <puts@plt>
subl   $0x1,0x8(%rsp)
jb     115b <main+0x2b>
mov    %rbx,%rdi
lea    0x4(%rsp),%rsi
xor    %eax,%eax
call   1050 <scanf@plt>
mov    %r15,%rdi
mov    %r12,%rsi
xor    %eax,%eax
call   1050 <scanf@plt>
cmpl   $0x0,0x4(%rsp)
jle    11ef <main+0xbf>
lea    0x10(%rsp),%rbp
xor    %r14d,%r14d
xchg   %ax,%ax
mov    %rbx,%rdi
mov    %rbp,%rsi
xor    %eax,%eax
call   1050 <scanf@plt>
add    $0x1,%r14
movslq 0x4(%rsp),%rax
add    $0x4,%rbp
cmp    %rax,%r14
jl     11d0 <main+0xa0>
mov    %r12,%rdi
mov    %r13,%rsi
call   1040 <strcmp@plt>
test   %rax,%rax
jne    1190 <main+0x60>
cmpl   $0x1,0x4(%rsp)
jne    1190 <main+0x60>
testb  $0x1,0x10(%rsp)
mov    %r13,%rdi
jne    1190 <main+0x60>
jmp    1197 <main+0x67>

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

LLVM IR (-O2):
@.str = [3 x i8] c"%d\00"
@.str.1 = [3 x i8] c"%s\00"
@str = [4 x i8] c"Dum\00"
@str.5 = [4 x i8] c"Dee\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca [4 x i8]
%4 = alloca [55 x i32]
%5 = bitcast i32* %1 to i8*
%6 = bitcast i32* %2 to i8*
%7 = getelementptr inbounds [4 x i8], [4 x i8]* %3, i64 0, i64 0
%8 = bitcast [55 x i32]* %4 to i8*
%9 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32* %1)
%10 = load i32, i32* %1
%11 = add nsw i32 %10, -1
store i32 %11, i32* %1
%12 = icmp eq i32 %10, 0
br i1 %12, label %45, label %13
13: ; preds = %0
%14 = getelementptr inbounds [55 x i32], [55 x i32]* %4, i64 0, i64 0
br label %15
15: ; preds = %13, %39
%16 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32* %2)
%17 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i8* %7)
%18 = load i32, i32* %2
%19 = icmp sgt i32 %18, 0
br i1 %19, label %20, label %28
20: ; preds = %15, %20
%21 = phi i64 [ %24, %20 ], [ 0, %15 ]
%22 = getelementptr inbounds [55 x i32], [55 x i32]* %4, i64 0, i64 %21
%23 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32* %22)
%24 = add nuw nsw i64 %21, 1
%25 = load i32, i32* %2
%26 = sext i32 %25 to i64
%27 = icmp slt i64 %24, %26
br i1 %27, label %20, label %28
28: ; preds = %20, %15
%29 = call i64 @strcmp(i8* %7, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @str.5, i64 0, i64 0))
%30 = icmp eq i64 %29, 0
%31 = load i32, i32* %2
%32 = icmp eq i32 %31, 1
%33 = select i1 %30, i1 %32, i1 false
br i1 %33, label %34, label %38
34: ; preds = %28
%35 = load i32, i32* %14
%36 = and i32 %35, 1
%37 = icmp eq i32 %36, 0
br i1 %37, label %39, label %38
38: ; preds = %34, %28
br label %39
39: ; preds = %34, %38
%40 = phi i8* [ getelementptr inbounds ([4 x i8], [4 x i8]* @str, i64 0, i64 0), %38 ], [ getelementptr inbounds ([4 x i8], [4 x i8]* @str.5, i64 0, i64 0), %34 ]
%41 = call i32 @puts(i8* dereferenceable(1) %40)
%42 = load i32, i32* %1
%43 = add nsw i32 %42, -1
store i32 %43, i32* %1
%44 = icmp eq i32 %42, 0
br i1 %44, label %45, label %15
45: ; preds = %39, %0
ret i32 0
}