#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, a[3];
  string s[3];
  cin >> n >> s[0] >> s[1] >> s[2];
  int n1 = s[0].size();
  for (int i = 0; i < 3; i++) {
    map<char, int> x;
    int ans = 0;
    for (int j = 0; j < n1; j++) {
      x[s[i][j]]++;
    }
    for (int j = 0; j < n1; j++) {
      int max1 = x[s[i][j]], a1;
      int k1 = (max1 + n) - n1;
      if (max1 + n <= n1)
        a1 = max1 + n;
      else if (n != 1)
        a1 = n1;
      else
        a1 = n1 - 1;
      ans = max(ans, a1);
    }
    a[i] = ans;
  }
  int m = 0;
  for (int i = 0; i < 3; i++) m = max(m, a[i]);
  int k = 0;
  for (int i = 0; i < 3; i++)
    if (a[i] == m) k++;
  if (k > 1) {
    cout << "Draw";
  } else if (a[0] > a[1] && a[0] > a[2]) {
    cout << "Kuro";
  } else if (a[1] > a[0] && a[1] > a[2]) {
    cout << "Shiro";
  } else
    cout << "Katie";
  return 0;
}
