#include <bits/stdc++.h>
using namespace std;
int main() {
  string s;
  cin >> s;
  string s2 = "keyence";
  int n = s.length();
  if (n < 7) {
    cout << "NO" << endl;
    return 0;
  } else if (n == 7) {
    if (s == "keyence")
      cout << "YES" << endl;
    else
      cout << "NO" << endl;
    return 0;
  } else {
    for (int i = 0; i < 7; i++) {
      if (s[i] == s2[i])
        continue;
      else {
        s.erase(s.begin() + i);
        i = i - 1;
      }
    }
    if (s == "keyence")
      cout << "YES" << endl;
    else
      cout << "NO" << endl;
    return 0;
  }
}
