#include <bits/stdc++.h>
using namespace std;
int main() {
  string s, ss = "keyence";
  cin >> s;
  int f = 0;
  int i = 0, j = 0;
  for (; i < s.size(); ++i) {
    if (s[i] == ss[j]) {
      j++;
      if (f == 1) f = 2;
    } else {
      if (f == 0)
        f = 1;
      else if (f >= 2)
        break;
    }
    if (j >= 7) {
      if (f == 0)
        cout << "YES" << '\n';
      else {
        if (i == s.size() - 1)
          cout << "YES" << '\n';
        else
          cout << "NO" << '\n';
      }
      return 0;
    }
  }
  cout << "NO" << '\n';
  return 0;
}
