#include <bits/stdc++.h>
using namespace std;
long long int m(string a) {
  vector<long long int> c(2 * 26, 0);
  for (long long int i = 0; i < a.length(); i++)
    if ('a' <= a[i] && a[i] <= 'z')
      c[a[i] - 'a']++;
    else
      c[a[i] - 'A' + 26]++;
  sort(c.begin(), c.end());
  return c.back();
}
int main(void) {
  ios_base::sync_with_stdio(false);
  long long int n;
  string a, b, c;
  cin >> n >> a >> b >> c;
  long long int s = a.length();
  long long int xa = s - m(a);
  long long int xb = s - m(b);
  long long int xc = s - m(c);
  if (xa != 0 || n != 1)
    xa = max(0ll, xa - n);
  else
    xa = 1;
  if (xb != 0 || n != 1)
    xb = max(0ll, xb - n);
  else
    xb = 1;
  if (xc != 0 || n != 1)
    xc = max(0ll, xc - n);
  else
    xc = 1;
  if (xa < xb && xa < xc)
    cout << "Kuro\n";
  else if (xb < xa && xb < xc)
    cout << "Shiro\n";
  else if (xc < xa && xc < xb)
    cout << "Katie\n";
  else
    cout << "Draw\n";
  return 0;
}
