#include <bits/stdc++.h>
using namespace std;
const long long int mod = 1e9 + 7;
int main() {
  string s;
  cin >> s;
  string t = "keyence";
  int n = s.size();
  bool flag = false;
  int j = 0;
  int end = 0;
  int str = 0;
  bool fi = false;
  for (int i = 0; i < n; i++) {
    if (s[i] == t[j] && !flag)
      j++;
    else if (s[i] == t[j] && !fi) {
      end = i;
      j++;
      if (!fi) fi = true;
    } else if (s[i] != t[j] && !flag) {
      flag = true;
      str = i;
    }
  }
  s.erase(s.begin() + str, s.begin() + end);
  if (s == t)
    cout << "YES" << endl;
  else
    cout << "NO" << endl;
  return 0;
}
