#include <bits/stdc++.h>
using namespace std;
using ll = long long;
int main() {
  string s;
  cin >> s;
  int sl = s.length();
  string ans = "NO";
  for (int i = 0; i < (sl); ++i) {
    for (int j = i; j < sl; ++j) {
      string s1 = s;
      s1.erase(i, j);
      if (s1 == "keyence") {
        ans = "YES";
      }
    }
  }
  cout << ans << endl;
}
