#include <bits/stdc++.h>
using namespace std;
bool check(string &s) {
  string p = "keyence";
  if (s.length() < p.length()) return false;
  for (long long i = 0; i <= s.length() - p.length(); i++) {
    long long j = i;
    for (j = i; j < i + p.length(); j++) {
      if (s[j] != p[j - i]) break;
    }
    if (j == i + p.length()) return true;
  }
  return false;
}
int main() {
  string s;
  cin >> s;
  long long i = 0;
  vector<long long> dp(s.length(), 0);
  for (long long i = 0; i < s.length(); i++) {
    for (long long j = i; j <= s.length(); j++) {
      string h = s.substr(0, i) + s.substr(j, s.length() - j);
      if (check(h)) {
        cout << "YES" << endl;
        return 0;
      }
    }
  }
  cout << "NO" << endl;
  return 0;
}
