#include <bits/stdc++.h>
using namespace std;
const long long mod = 1000000007;
signed main() {
  ios::sync_with_stdio(false);
  cin.tie(0);
  string s;
  cin >> s;
  string t = "keyence";
  long long tmp = s.size() - 7;
  if (s == t) {
    cout << "YES" << endl;
    return 0;
  }
  for (long long i = 0; i < s.size() - 7; i++) {
    bool f = true;
    for (long long j = 0; j < i; j++) {
      if (s[j] != t[j]) f = false;
    }
    for (long long j = i + tmp; j < s.size(); j++) {
      if (s[j] != t[j - tmp]) f = false;
    }
    if (f) {
      cout << "YES" << endl;
      return 0;
    }
  }
  cout << "NO" << endl;
}
