#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using ull = unsigned long long;
using pii = pair<int, int>;
using pll = pair<ll, ll>;
int main(void) {
  ios::sync_with_stdio(false);
  cin.tie(0);
  const string S = "keyence";
  string s;
  cin >> s;
  for (int i = (1); i < (S.size() - 1); i++) {
    auto p1 = s.find(S.substr(0, i));
    if (p1 != string::npos) {
      auto p2 = s.find(S.substr(i), p1 + 1);
      if (p2 != string::npos) {
        cout << ("YES") << '\n';
        return 0;
      }
    }
  }
  cout << ("NO") << '\n';
  return 0;
}
