#include <bits/stdc++.h>
using namespace std;
int ans[3];
int to(char q) {
  if (islower(q)) return q - 'a';
  return q - 'A' + 26;
}
string e[] = {"Kuro", "Shiro", "Katie"};
int main() {
  ios::sync_with_stdio(0);
  int n;
  cin >> n;
  for (int ji = 0; ji < 3; ji++) {
    string s;
    cin >> s;
    int M[52];
    memset(M, 0, sizeof M);
    for (char c : s) M[to(c)]++;
    for (int i = 0; i < 52; i++) {
      int x = M[i];
      if (s.length() > x + n)
        ans[ji] = max(ans[ji], x + n);
      else {
        x += n;
        x -= s.length();
        if (x == 1 && n == 1)
          x = s.length() - 1;
        else
          x = s.length();
        ans[ji] = max(ans[ji], x);
      }
    }
  }
  int ma = 0;
  for (int i = 0; i < 3; i++) ma = max(ma, ans[i]);
  int cnt = 0, last = 0;
  for (int i = 0; i < 3; i++)
    if (ans[i] == ma) cnt++, last = i;
  if (cnt == 1)
    cout << e[last];
  else
    cout << "Draw";
}
