#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  int n;
  cin >> n;
  vector<pair<int, int> > win(3);
  map<int, string> out;
  out[0] = "Kuro";
  out[1] = "Shiro";
  out[2] = "Katie";
  vector<string> t;
  for (int i = 0; i < 3; i++) {
    string str;
    cin >> str;
    t.push_back(str);
    map<char, int> mp;
    for (int j = 0; j < str.size(); j++) mp[str[j]]++;
    int maxa = 0;
    for (auto j : mp) {
      int curr = j.second;
      if (curr + n <= str.size())
        curr += n;
      else if (curr == str.size() && n == 1)
        curr = str.size() - 1;
      else {
        curr = str.size();
      }
      maxa = max(maxa, curr);
    }
    win[i] = {maxa, i};
  }
  sort(win.begin(), win.end(), greater<pair<int, int> >());
  if (win[0].first == win[1].first)
    cout << "Draw\n";
  else
    cout << out[win[0].second] << "\n";
  return 0;
}
