#include <bits/stdc++.h>
using namespace std;
const int maxn = 1e5;
map<char, long long> map1;
long long n;
long long cal(string k) {
  map1.clear();
  for (long long i = 0; i < k.size(); i++) {
    map1[k[i]]++;
  }
  long long ans = 0;
  for (map<char, long long>::iterator it = map1.begin(); it != map1.end();
       it++) {
    ans = max(ans, it->second);
  }
  if (ans + n <= k.length())
    return ans + n;
  else {
    if (n == 1)
      return k.length() - 1;
    else
      return k.length();
  }
}
int main(void) {
  cin >> n;
  string a, b, c;
  cin >> a >> b >> c;
  long long sum1 = cal(a);
  long long sum2 = cal(b);
  long long sum3 = cal(c);
  if (sum1 > sum2 && sum1 > sum3) {
    cout << "Kuro" << endl;
  } else if (sum2 > sum1 && sum2 > sum3) {
    cout << "Shiro" << endl;
  } else if (sum3 > sum1 && sum3 > sum2) {
    cout << "Katie" << endl;
  } else if (sum1 == sum2 || sum1 == sum3 || sum2 == sum3) {
    cout << "Draw" << endl;
  }
  return 0;
}
