#include <bits/stdc++.h>
using namespace std;
int main(void) {
  string s;
  cin >> s;
  bool t = true;
  string s0 = "keyence";
  long long c = 0;
  long long n = s.length();
  for (long long i = 0; i < n; ++i) {
    if (c == 7) {
      if (t) {
        cout << "YES";
      } else {
        cout << "NO";
      }
      return 0;
    }
    if (s[i] != s0[c] && t) {
      t = false;
      while (s[i + 1] != s0[c] && n > i + 1) ++i;
      if (i == n - 1) {
        cout << "NO";
        return 0;
      }
    } else if (!t && s[i] != s0[c]) {
      cout << "NO";
      return 0;
    } else if (s[i] == s0[c]) {
      ++c;
    }
  }
  cout << "YES";
}
