#include <bits/stdc++.h>   using namespace std;   string a, b, c;   long long n, x, y, z;   pair<long long, long long> f[2000];   int main() {     ios_base::sync_with_stdio(0);     cin.tie(0);     cout.tie(0);     cin >> n >> a >> b >> c;     for (auto i : a) {       f[i].first++;       x = max(x, f[i].first);     }     for (auto i : b) {       if (f[i].second != 2) f[i] = {0, 2};       f[i].first++;       y = max(y, f[i].first);     }     for (auto i : c) {       if (f[i].second != 3) f[i] = {0, 3};       f[i].first++;       z = max(z, f[i].first);     }     if (n == 1) {       if (a.size() == x) a.erase(0, 1);       if (b.size() == y) b.erase(0, 1);       if (c.size() == z) c.erase(0, 1);     }     x = min(x + n, (long long)a.size());     y = min(y + n, (long long)b.size());     z = min(z + n, (long long)c.size());     if (x > y && x > z) return cout <<  Kuro , 0;     if (y > x && y > z) return cout <<  Shiro , 0;     if (z > x && z > y) return cout <<  Katie , 0;     cout <<  Draw ;     return 0;   }   