#include <bits/stdc++.h>
using namespace std;
const int dx[4] = {1, 0, -1, 0}, dy[4] = {0, 1, 0, -1};
const long long mod = 1000000007;
const long long inf = long long(1e9);
const long long half_inf = long long(1e5);
const long long ll_inf = long long(1e9) * long long(1e9);
int main() {
  string s;
  cin >> s;
  string k = "keyence";
  if (s.length() < k.length()) {
    cout << "NO" << endl;
    return 0;
  }
  if (s.substr(0, k.length()) == k) {
    cout << "YES" << endl;
    return 0;
  }
  if (s.substr(s.length() - k.length(), k.length()) == k) {
    cout << "YES" << endl;
    return 0;
  }
  int is = 0, ik = 0;
  string ans;
  while (s[is] == k[ik]) {
    ans += s[is];
    is++;
    ik++;
  }
  is = s.length() - 1, ik = k.length() - 1;
  string a2;
  while (s[is] == k[ik]) {
    a2 = s[is] + a2;
    is--;
    ik--;
  }
  if (ans + a2 == k)
    cout << "YES" << endl;
  else
    cout << "NO" << endl;
  return 0;
}
