#include <bits/stdc++.h>
using namespace std;
int main() {
  string s;
  cin >> s;
  if (s.size() < 7) {
    cout << "NO";
    return 0;
  } else if (s.size() == 7) {
    if (s != "keyence")
      cout << "NO";
    else
      cout << "YES";
    return 0;
  }
  string t = "keyence";
  int a = 0, f = 0;
  for (int i = 0; i < s.size(); i++) {
    {
      if (s[i] == t[a]) {
        a++;
        f++;
      }
    }
  }
  if (a == 7)
    cout << "Yes";
  else
    cout << "NO";
}
