#include <bits/stdc++.h>
using namespace std;
void __print(int x) { cerr << x; }
void __print(long x) { cerr << x; }
void __print(long long x) { cerr << x; }
void __print(unsigned x) { cerr << x; }
void __print(unsigned long x) { cerr << x; }
void __print(unsigned long long x) { cerr << x; }
void __print(float x) { cerr << x; }
void __print(double x) { cerr << x; }
void __print(long double x) { cerr << x; }
void __print(char x) { cerr << '\'' << x << '\''; }
void __print(const char *x) { cerr << '\"' << x << '\"'; }
void __print(const string &x) { cerr << '\"' << x << '\"'; }
void __print(bool x) { cerr << (x ? "true" : "false"); }
template <typename T, typename V>
void __print(const pair<T, V> &x) {
  cerr << '{';
  __print(x.first);
  cerr << ',';
  __print(x.second);
  cerr << '}';
}
template <typename T>
void __print(const T &x) {
  int f = 0;
  cerr << '{';
  for (auto &i : x) cerr << (f++ ? "," : ""), __print(i);
  cerr << "}";
}
void _print() { cerr << "]\n"; }
template <typename T, typename... V>
void _print(T t, V... v) {
  __print(t);
  if (sizeof...(v)) cerr << ", ";
  _print(v...);
}
mt19937 rng(chrono::steady_clock::now().time_since_epoch().count());
const long long INF = 1e18L;
const double eps = 1e-9;
const long long mod = 1e9 + 7;
long long fs[26], fc[26], n;
string a, b, c;
void init() {
  for (long long i = 0; i < 26; i++) {
    fs[i] = n;
    fc[i] = n;
  }
}
int32_t main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  ;
  cin >> n >> a >> b >> c;
  long long kuro = 0, shiro = 0, katie = 0;
  init();
  for (long long i = 0; i < (long long)a.size(); i++) {
    char x = a[i];
    if (x >= 'a' && x <= 'z') {
      fs[x - 'a'] += 1;
    } else {
      fc[x - 'A'] += 1;
    }
  }
  for (long long i = 0; i < 26; i++) {
    if (fs[i] <= (long long)a.size()) {
      kuro = max(kuro, fs[i]);
    } else {
      fs[i] %= (long long)a.size();
      if (fs[i] == 1 && n == 1) {
        kuro = max(kuro, (long long)a.size() - 1);
      } else {
        kuro = max(kuro, (long long)a.size());
      }
    }
    if (fc[i] <= (long long)a.size()) {
      kuro = max(kuro, fc[i]);
    } else {
      fc[i] %= (long long)a.size();
      if (fc[i] == 1 && n == 1) {
        kuro = max(kuro, (long long)a.size() - 1);
      } else {
        kuro = max(kuro, (long long)a.size());
      }
    }
  }
  init();
  for (long long i = 0; i < (long long)b.size(); i++) {
    char x = b[i];
    if (x >= 'a' && x <= 'z') {
      fs[x - 'a'] += 1;
    } else {
      fc[x - 'A'] += 1;
    }
  }
  for (long long i = 0; i < 26; i++) {
    if (fs[i] <= (long long)b.size()) {
      shiro = max(shiro, fs[i]);
    } else {
      fs[i] %= (long long)b.size();
      if (fs[i] == 1 && n == 1) {
        shiro = max(shiro, (long long)b.size() - 1);
      } else {
        shiro = max(shiro, (long long)b.size());
      }
    }
    if (fc[i] <= (long long)b.size()) {
      shiro = max(shiro, fc[i]);
    } else {
      fc[i] %= (long long)b.size();
      if (fc[i] == 1 && n == 1) {
        shiro = max(shiro, (long long)b.size() - 1);
      } else {
        shiro = max(shiro, (long long)b.size());
      }
    }
  }
  init();
  for (long long i = 0; i < (long long)c.size(); i++) {
    char x = c[i];
    if (x >= 'a' && x <= 'z') {
      fs[x - 'a'] += 1;
    } else {
      fc[x - 'A'] += 1;
    }
  }
  for (long long i = 0; i < 26; i++) {
    if (fs[i] <= (long long)c.size()) {
      katie = max(katie, fs[i]);
    } else {
      fs[i] %= (long long)c.size();
      if (fs[i] == 1 && n == 1) {
        katie = max(katie, (long long)c.size() - 1);
      } else {
        katie = max(katie, (long long)c.size());
      }
    }
    if (fc[i] <= (long long)c.size()) {
      katie = max(katie, fc[i]);
    } else {
      fc[i] %= (long long)c.size();
      if (fc[i] == 1 && n == 1) {
        katie = max(katie, (long long)c.size() - 1);
      } else {
        katie = max(katie, (long long)c.size());
      }
    }
  }
  if (kuro > shiro && kuro > katie) {
    cout << "Kuro\n";
  } else if (shiro > kuro && shiro > katie) {
    cout << "Shiro\n";
  } else if (katie > kuro && katie > shiro) {
    cout << "Katie\n";
  } else {
    cout << "Draw\n";
  }
  return 0;
}
