#include <bits/stdc++.h>
using namespace std;
const long long dx[] = {0, -1, 0, 1};
const long long dy[] = {1, 0, -1, 0};
const long long MOD = (1000000007);
const long long INF = (1LL << 60) - 1;
const double EPS = (1 >> 30);
template <class T>
inline bool chmin(T& a, T b) {
  if (a > b) {
    a = b;
    return 1;
  }
  return 0;
}
template <class T>
inline bool chmax(T& a, T b) {
  if (a < b) {
    a = b;
    return 1;
  }
  return 0;
}
using Graph = vector<vector<pair<long long, long long>>>;
using Ki = vector<vector<long long>>;
using Vi = vector<long long>;
signed main() {
  ios::sync_with_stdio(false);
  cin.tie(0);
  cout << fixed << setprecision(10);
  string s;
  cin >> s;
  long long n = s.size();
  long long a = n - 7;
  if (n == 7) {
    if (s == "keyence")
      cout << "YES" << endl;
    else
      cout << "NO" << endl;
  } else {
    if (s.substr(0, 7) == "keyence") {
      cout << "YES" << endl;
      return 0;
    } else {
      for (long long i = 0; i < a; i++) {
        string t = "";
        for (long long j = 0; j < i; j++) {
          t += s[j];
        }
        cout << t << " ";
        for (long long j = n - 7 + i; j < n; j++) {
          t += s[j];
        }
        cout << t << endl;
        if (t == "keyence") {
          cout << "YES" << endl;
          return 0;
        }
      }
      cout << "NO" << endl;
    }
  }
}
