#include <bits/stdc++.h>
using namespace std;
int main() {
  string s;
  long long a, b;
  cin >> s;
  a = s.find("keyence");
  if (a != string::npos) {
    cout << "YES" << endl;
  } else {
    a = s.find("k");
    b = s.rfind("eyence");
    if (a != string::npos && b != string::npos && a + 1 < b) {
      cout << "YES" << endl;
      return 0;
    }
    a = s.find("ke");
    b = s.rfind("yence");
    if (a != string::npos && b != string::npos && a + 2 < b) {
      cout << "YES" << endl;
      return 0;
    }
    a = s.find("key");
    b = s.rfind("ence");
    if (a != string::npos && b != string::npos && a + 3 < b) {
      cout << "YES" << endl;
      return 0;
    }
    a = s.find("keye");
    b = s.rfind("nce");
    if (a != string::npos && b != string::npos && a + 4 < b) {
      cout << "YES" << endl;
      return 0;
    }
    a = s.find("keyen");
    b = s.rfind("ce");
    if (a != string::npos && b != string::npos && a + 5 < b) {
      cout << "YES" << endl;
      return 0;
    }
    a = s.find("keyenc");
    b = s.rfind("e");
    if (a != string::npos && b != string::npos && a + 6 < b) {
      cout << "YES" << endl;
      return 0;
    }
    cout << "NO" << endl;
  }
}
