#include <bits/stdc++.h>
using namespace std;
const long long int mod = 998244353ll;
const long long int P = 1000000007ll;
const long long int N = 300005ll;
long long int cnt[3];
long long int a[3];
void solve() {
  long long int n;
  cin >> n;
  map<char, long long int> m[3];
  for (long long int i = (0); i <= (2); ++i) {
    string s;
    cin >> s;
    a[i] = (long long int)s.size();
    for (long long int j = (0); j <= ((long long int)s.size() - 1); ++j)
      m[i][s[j]]++;
    for (auto v : m[i]) cnt[i] = max(cnt[i], v.second);
  }
  long long int ans = 0;
  long long int count = 0;
  for (long long int i = (0); i <= (2); ++i) {
    if (cnt[i] == a[i] && n == 1)
      cnt[i]--;
    else
      cnt[i] = min(cnt[i] + n, a[i]);
    if (ans < cnt[i]) {
      ans = cnt[i];
      count = 1;
    } else if (ans == cnt[i])
      ++count;
  }
  if (count > 1)
    cout << "Draw";
  else {
    if (cnt[0] == ans)
      cout << "Kuro";
    else if (cnt[1] == ans)
      cout << "Shiro";
    else
      cout << "Katie";
  }
}
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  long long int t = 1;
  while (t--) {
    solve();
    cout << "\n";
  }
  return 0;
}
