#include <bits/stdc++.h>
using namespace std;
int32_t main() {
  ios::sync_with_stdio(false), cin.tie(0);
  ;
  string s;
  string a = "keyence";
  cin >> s;
  for (long long i = 0; i < s.length(); i++) {
    if (s[i] == a[0]) {
      long long j = i;
      long long k = 0;
      for (; j < s.length() && k < a.length(); j++) {
        if (s[j] == a[k]) k++;
      }
      if (k == a.length()) {
        return cout << "YES", 0;
      }
    }
  }
  cout << "NO";
}
