#include <bits/stdc++.h>
using namespace std;
const long long inf = 1e10;
const long long mod = 1e9 + 7;
void faster() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
}
const long long M = 500 + 10;
const long long N = 100 * 1000 + 10;
int main() {
  faster();
  string res = "keyence";
  string s;
  cin >> s;
  int n = s.size();
  for (int i = 0; i < n; i++) {
    for (int j = i; j < n; j++) {
      string t;
      for (int k = i; k <= j; k++) t.push_back(s[k]);
      if (t == res) {
        cout << "YES\n";
        return 0;
      }
    }
  }
  cout << "NO\n";
}
