#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  string s, key = "keyence";
  cin >> s;
  long l, ind;
  for (long i = 0; i < s.size(); i++) {
    l = 0;
    ind = i;
    if (s[i] == key[l]) {
      while (l < key.size() && i < s.size() && s[i] == key[l]) {
        i++;
        l++;
      }
      if (l == key.size()) {
        cout << "YES";
        exit(0);
      }
      while (i < s.size() && s[i] != key[l]) i++;
      if (i == s.size()) {
        l = 0;
        continue;
      }
      long templ = l;
      for (long ind2 = i; ind2 < s.size(); ind2++) {
        i = ind2;
        l = templ;
        while (l < key.size() && i < s.size() && s[i] == key[l]) {
          i++;
          l++;
        }
        if (l == key.size()) {
          cout << "YES";
          exit(0);
        }
      }
      l = 0;
    }
    i = ind;
  }
  cout << "NO";
}
