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