#include <bits/stdc++.h>
using namespace std;
const int MOD = 1e9 + 7;
const double pi = 3.14159265358979323846;
const int inf = 1e9;
const long long INF = 1e18;
int main() {
  cin.tie(0), cout.tie(0);
  ios::sync_with_stdio(false);
  string s, t, u;
  cin >> s;
  for (int i = 0; i < 7; i++) {
    t = s.substr(0, i + 1);
    u = s.substr(s.size() - 6 + i, 7 - i + 1);
    cout << t << " " << u << endl;
    if (t + u == "keyence") {
      cout << "YES" << endl;
      return 0;
    }
  }
  cout << "NO" << endl;
}
