#include <bits/stdc++.h>
using namespace std;
map<int, int> m1, m2, m3;
int main() {
  string a, b, c;
  int n, mxa = 0, mxb = 0, mxc = 0;
  cin >> n;
  cin >> a >> b >> c;
  int len = a.length();
  for (int i = 0; i < len; i++) {
    m1[a[i]]++;
    m2[b[i]]++;
    m3[c[i]]++;
    if (m1[a[i]] > mxa) {
      mxa = m1[a[i]];
    }
    if (m2[b[i]] > mxb) {
      mxb = m2[b[i]];
    }
    if (m3[c[i]] > mxc) {
      mxc = m3[c[i]];
    }
  }
  if (mxa == len) {
    if (n == 1) mxa--;
  } else {
    mxa += n;
    if (mxa > len) mxa = len;
  }
  if (mxb == len) {
    if (n == 1) mxb--;
  } else {
    mxb += n;
    if (mxb > len) mxb = len;
  }
  if (mxc == len) {
    if (n == 1) mxc--;
  } else {
    mxc += n;
    if (mxc > len) mxc = len;
  }
  if (mxa > mxb && mxa > mxc) {
    cout << "Kuro";
  } else if (mxb > mxa && mxb > mxc) {
    cout << "Shiro";
  } else if (mxc > mxa && mxc > mxb) {
    cout << "Katie";
  } else {
    cout << "Draw";
  }
  return 0;
}
