#include <bits/stdc++.h>
using namespace std;
bool check(int a, int b, int c) {
  if (a > max(b, c)) return true;
  return false;
}
int main() {
  int n = 0;
  string a, b, c;
  cin >> n;
  cin >> a >> b >> c;
  int len = a.size();
  map<char, int> ma, mb, mc;
  for (int i = 0; i < len; i++) {
    ma[a[i]]++;
    mb[b[i]]++;
    mc[c[i]]++;
  }
  int maxa = 0, maxb = 0, maxc = 0;
  int targeta = 0, targetb = 0, targetc = 0;
  for (auto it : ma) maxa = max(maxa, it.second);
  for (auto it : mb) maxb = max(maxb, it.second);
  for (auto it : mc) maxc = max(maxc, it.second);
  if (n == 1 && maxa == len)
    targeta = maxa - 1;
  else
    targeta = min(len, maxa + n);
  if (n == 1 && maxb == len)
    targetb = maxb - 1;
  else
    targetb = min(len, maxb + n);
  if (n == 1 && maxc == len)
    targetc = maxc - 1;
  else
    targetc = min(len, maxc + n);
  if (check(targeta, targetb, targetc)) {
    cout << "Kuro" << endl;
  } else if (check(targetb, targeta, targetc)) {
    cout << "Shiro" << endl;
  } else if (check(targetc, targeta, targetb)) {
    cout << "Katie" << endl;
  } else {
    cout << "Draw" << endl;
  }
  return 0;
}
