#include <bits/stdc++.h>
using namespace std;
void solve() {
  string s;
  cin >> s;
  string k = "keyence";
  if (s.find(k) != -1) {
    cout << "YES";
    exit(0);
  }
  for (long long int i = 1; i < 7; i++) {
    string s1 = k.substr(0, i);
    string s2 = k.substr(i, 7 - i);
    long long int p1 = s.find(s1);
    if (p1 != string::npos) {
      string ts = s.substr(p1 + i, (long long int)s.size() - p1 - i);
      long long int p2 = ts.find(s2);
      if (p2 != string::npos) {
        cout << "YES";
        exit(0);
      }
    }
  }
  cout << "NO";
}
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  long long int T = 1;
  while (T--) solve();
  return 0;
}
