#include <bits/stdc++.h>
using namespace std;
const long long inf = 1e18;
const long long mod = 1e9 + 7;
const int N = 1e5 + 5;
int a[N];
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  string s = "keyence", t;
  cin >> t;
  int n = t.size();
  if (t == s) {
    cout << "YES";
    return 0;
  }
  for (int i = 0; i < n; i++) {
    for (int j = i; j < n; j++) {
      string tmp = "";
      for (int k = 0; k < n; k++) {
        if (k >= i && k <= j) continue;
        tmp += t[k];
        if (tmp == s) {
          cout << "YES";
          return 0;
        }
      }
    }
  }
  cout << "NO";
  return 0;
}
