#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using pii = pair<int, int>;
using vi = vector<int>;
using vll = vector<ll>;
const string ALPHA = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";
string NAME[3] = {"Kuro", "Shiro", "Katie"};
int main() {
  ios::sync_with_stdio(false);
  cin.tie(0);
  cout << fixed << setprecision(20);
  ll N;
  while (cin >> N) {
    vector<string> S(3);
    vll ma(3);
    for (int(a) = (0); (a) < (int)(3); ++(a)) {
      cin >> S[a];
      for (char b : ALPHA) {
        ll x = 0;
        for (auto &(c) : (S[a])) {
          if (b == c) x++;
        }
        if (N > (int)(S[a]).size() - x) {
          ll p = N - (int)(S[a]).size() + x;
          if (p == 1 && x == (int)(S[a]).size())
            (ma[a]) = max((ma[a]), ((int)(S[a]).size() - p));
          else
            (ma[a]) = max((ma[a]), ((ll)(int)(S[a]).size()));
        } else {
          (ma[a]) = max((ma[a]), (N + x));
        }
      }
    }
    ll m = -1, cnt = 0, cat = -1;
    for (int(a) = (0); (a) < (int)(3); ++(a)) {
      if (m < ma[a]) {
        cat = a;
        m = ma[a];
      }
    }
    for (int(a) = (0); (a) < (int)(3); ++(a))
      if (m == ma[a]) cnt++;
    if (cnt > 1)
      cout << "Draw" << endl;
    else
      cout << NAME[cat] << endl;
  }
}
