#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 k, n, i;
  scanf("%d %d", &k, &n);
  int even = 0;
  int odd = 0;
  for (i = 0; i < k; i++) {
    long size;
    scanf("%ld", &size);
    if (size % 2 == 0)
      even++;
    else
      odd++;
  }
  if (n == k) {
    if (odd & 1) {
      printf("Stannis\n");
      return 0;
    } else {
      printf("Daenerys\n");
      return 0;
    }
  }
  int times = k - n;
  if (times / 2 >= odd) {
    printf("Daenerys\n");
    return 0;
  }
  if ((n & 1) == 1 && (k - n) / 2 >= even) {
    printf("Stannis\n");
    return 0;
  }
  if ((n & 1) == 0 && (k - n) / 2 >= even) {
    printf("Daenerys\n");
    return 0;
  }
  if (times & 1) {
    printf("Stannis\n");
    return 0;
  } else {
    printf("Daenerys\n");
    return 0;
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xeca(%rip),%rdi
lea    -0x8(%rbp),%rsi
lea    -0xc(%rbp),%rdx
mov    $0x0,%al
call   1040 <scanf@plt>
movl   $0x0,-0x14(%rbp)
movl   $0x0,-0x18(%rbp)
movl   $0x0,-0x10(%rbp)
mov    -0x10(%rbp),%eax
cmp    -0x8(%rbp),%eax
jge    11ba <main+0x9a>
lea    0xe99(%rip),%rdi
lea    -0x20(%rbp),%rsi
mov    $0x0,%al
call   1040 <scanf@plt>
mov    -0x20(%rbp),%rax
mov    $0x2,%ecx
cqto
idiv   %rcx
cmp    $0x0,%rdx
jne    119e <main+0x7e>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    11a7 <main+0x87>
mov    -0x18(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x18(%rbp)
jmp    11ac <main+0x8c>
mov    -0x10(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x10(%rbp)
jmp    115a <main+0x3a>
mov    -0xc(%rbp),%eax
cmp    -0x8(%rbp),%eax
jne    1205 <main+0xe5>
mov    -0x18(%rbp),%eax
and    $0x1,%eax
cmp    $0x0,%eax
je     11ed <main+0xcd>
lea    0xe2e(%rip),%rdi
call   1030 <printf@plt>
movl   $0x0,-0x4(%rbp)
jmp    12f0 <main+0x1d0>
lea    0xe1f(%rip),%rdi
call   1030 <printf@plt>
movl   $0x0,-0x4(%rbp)
jmp    12f0 <main+0x1d0>
mov    -0x8(%rbp),%eax
sub    -0xc(%rbp),%eax
mov    %eax,-0x24(%rbp)
mov    -0x24(%rbp),%eax
mov    $0x2,%ecx
cltd
idiv   %ecx
cmp    -0x18(%rbp),%eax
jl     123a <main+0x11a>
lea    0xdea(%rip),%rdi
call   1030 <printf@plt>
movl   $0x0,-0x4(%rbp)
jmp    12f0 <main+0x1d0>
mov    -0xc(%rbp),%eax
and    $0x1,%eax
cmp    $0x1,%eax
jne    1278 <main+0x158>
mov    -0x8(%rbp),%eax
sub    -0xc(%rbp),%eax
mov    $0x2,%ecx
cltd
idiv   %ecx
cmp    -0x14(%rbp),%eax
jl     1278 <main+0x158>
lea    0xda3(%rip),%rdi
call   1030 <printf@plt>
movl   $0x0,-0x4(%rbp)
jmp    12f0 <main+0x1d0>
mov    -0xc(%rbp),%eax
and    $0x1,%eax
cmp    $0x0,%eax
jne    12b6 <main+0x196>
mov    -0x8(%rbp),%eax
sub    -0xc(%rbp),%eax
mov    $0x2,%ecx
cltd
idiv   %ecx
cmp    -0x14(%rbp),%eax
jl     12b6 <main+0x196>
lea    0xd6e(%rip),%rdi
call   1030 <printf@plt>
movl   $0x0,-0x4(%rbp)
jmp    12f0 <main+0x1d0>
mov    -0x24(%rbp),%eax
and    $0x1,%eax
cmp    $0x0,%eax
je     12dd <main+0x1bd>
lea    0xd3e(%rip),%rdi
call   1030 <printf@plt>
movl   $0x0,-0x4(%rbp)
jmp    12f0 <main+0x1d0>
lea    0xd2f(%rip),%rdi
call   1030 <printf@plt>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x30,%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
xor    %r12d,%r12d
mov    %rsp,%rsi
lea    0x4(%rsp),%rdx
xor    %eax,%eax
call   1040 <scanf@plt>
mov    (%rsp),%eax
mov    $0x0,%ebx
test   %eax,%eax
jle    1196 <main+0x76>
lea    0xeae(%rip),%r14
lea    0x8(%rsp),%r15
xor    %ebx,%ebx
xor    %r12d,%r12d
xor    %ebp,%ebp
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
mov    %r14,%rdi
mov    %r15,%rsi
xor    %eax,%eax
call   1040 <scanf@plt>
mov    0x8(%rsp),%eax
and    $0x1,%eax
add    %eax,%ebx
xor    $0x1,%eax
add    %eax,%r12d
add    $0x1,%ebp
mov    (%rsp),%eax
cmp    %eax,%ebp
jl     1170 <main+0x50>
mov    0x4(%rsp),%ecx
sub    %ecx,%eax
jne    11b5 <main+0x95>
test   $0x1,%bl
lea    0xe62(%rip),%rax
lea    0xe64(%rip),%rdi
cmove  %rax,%rdi
jmp    11e6 <main+0xc6>
mov    %eax,%edx
shr    $0x1f,%edx
add    %eax,%edx
sar    %edx
lea    0xe45(%rip),%rdi
cmp    %ebx,%edx
jge    11e6 <main+0xc6>
test   $0x1,%cl
je     11dc <main+0xbc>
cmp    %r12d,%edx
jl     11dc <main+0xbc>
lea    0xe39(%rip),%rdi
jmp    11e6 <main+0xc6>
test   $0x1,%cl
jne    11fa <main+0xda>
cmp    %r12d,%edx
jl     11fa <main+0xda>
call   1030 <puts@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
pop    %rbp
ret
test   $0x1,%al
jmp    11a1 <main+0x81>

LLVM IR (-O0):
@.str = [6 x i8] c"%d %d\00"
@.str.1 = [4 x i8] c"%ld\00"
@.str.2 = [9 x i8] c"Stannis\0A\00"
@.str.3 = [10 x i8] c"Daenerys\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32
%6 = alloca i32
%7 = alloca i64
%8 = alloca i32
store i32 0, i32* %1
%9 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), i32* %2, i32* %3)
store i32 0, i32* %5
store i32 0, i32* %6
store i32 0, i32* %4
br label %10
10: ; preds = %26, %0
%11 = load i32, i32* %4
%12 = load i32, i32* %2
%13 = icmp slt i32 %11, %12
br i1 %13, label %14, label %29
14: ; preds = %10
%15 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i64* %7)
%16 = load i64, i64* %7
%17 = srem i64 %16, 2
%18 = icmp eq i64 %17, 0
br i1 %18, label %19, label %22
19: ; preds = %14
%20 = load i32, i32* %5
%21 = add nsw i32 %20, 1
store i32 %21, i32* %5
br label %25
22: ; preds = %14
%23 = load i32, i32* %6
%24 = add nsw i32 %23, 1
store i32 %24, i32* %6
br label %25
25: ; preds = %22, %19
br label %26
26: ; preds = %25
%27 = load i32, i32* %4
%28 = add nsw i32 %27, 1
store i32 %28, i32* %4
br label %10
29: ; preds = %10
%30 = load i32, i32* %3
%31 = load i32, i32* %2
%32 = icmp eq i32 %30, %31
br i1 %32, label %33, label %41
33: ; preds = %29
%34 = load i32, i32* %6
%35 = and i32 %34, 1
%36 = icmp ne i32 %35, 0
br i1 %36, label %37, label %39
37: ; preds = %33
%38 = call i32 @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.2, i64 0, i64 0))
store i32 0, i32* %1
br label %85
39: ; preds = %33
%40 = call i32 @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.3, i64 0, i64 0))
store i32 0, i32* %1
br label %85
41: ; preds = %29
%42 = load i32, i32* %2
%43 = load i32, i32* %3
%44 = sub nsw i32 %42, %43
store i32 %44, i32* %8
%45 = load i32, i32* %8
%46 = sdiv i32 %45, 2
%47 = load i32, i32* %6
%48 = icmp sge i32 %46, %47
br i1 %48, label %49, label %51
49: ; preds = %41
%50 = call i32 @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.3, i64 0, i64 0))
store i32 0, i32* %1
br label %85
51: ; preds = %41
%52 = load i32, i32* %3
%53 = and i32 %52, 1
%54 = icmp eq i32 %53, 1
br i1 %54, label %55, label %64
55: ; preds = %51
%56 = load i32, i32* %2
%57 = load i32, i32* %3
%58 = sub nsw i32 %56, %57
%59 = sdiv i32 %58, 2
%60 = load i32, i32* %5
%61 = icmp sge i32 %59, %60
br i1 %61, label %62, label %64
62: ; preds = %55
%63 = call i32 @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.2, i64 0, i64 0))
store i32 0, i32* %1
br label %85
64: ; preds = %55, %51
%65 = load i32, i32* %3
%66 = and i32 %65, 1
%67 = icmp eq i32 %66, 0
br i1 %67, label %68, label %77
68: ; preds = %64
%69 = load i32, i32* %2
%70 = load i32, i32* %3
%71 = sub nsw i32 %69, %70
%72 = sdiv i32 %71, 2
%73 = load i32, i32* %5
%74 = icmp sge i32 %72, %73
br i1 %74, label %75, label %77
75: ; preds = %68
%76 = call i32 @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.3, i64 0, i64 0))
store i32 0, i32* %1
br label %85
77: ; preds = %68, %64
%78 = load i32, i32* %8
%79 = and i32 %78, 1
%80 = icmp ne i32 %79, 0
br i1 %80, label %81, label %83
81: ; preds = %77
%82 = call i32 @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.2, i64 0, i64 0))
store i32 0, i32* %1
br label %85
83: ; preds = %77
%84 = call i32 @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.3, i64 0, i64 0))
store i32 0, i32* %1
br label %85
85: ; preds = %83, %81, %75, %62, %49, %39, %37
%86 = load i32, i32* %1
ret i32 %86
}

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