#include <bits/stdc++.h>
using namespace std;
int a[3][128], b[3];
char s[100005];
int main() {
  int n, m, i, j;
  scanf("%d", &n);
  for (i = 0; i < 3; i++) {
    scanf("%s", s);
    m = strlen(s);
    for (j = 0; j < m; j++) a[i][s[j]]++;
    for (j = 0; j < 128; j++) b[i] = max(b[i], a[i][j]);
    if (b[i] == m && n == 1)
      b[i] = m - 1;
    else
      b[i] = min(m, b[i] + n);
  }
  if (b[0] == b[1] && b[0] >= b[2] || b[0] == b[2] && b[0] >= b[1] ||
      b[1] == b[2] && b[1] >= b[0])
    printf("Draw\n");
  else if (b[0] > b[1] && b[0] > b[2])
    printf("Kuro\n");
  else if (b[1] > b[2])
    printf("Shiro\n");
  else
    printf("Katie\n");
  return 0;
}
