#include <bits/stdc++.h>
using namespace std;
char _;
string second, T = "keyence", U;
long long i, j = 0, k, a, b, c, d, f, g, h, l, m, n, p, q, r, s, t, u, v, w, x,
             y, z, maxx = INT_MIN, minn = INT_MAX, ans = 0, sum = 0, cnt = 0;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(nullptr);
  cout.tie(nullptr);
  cin >> second;
  if (second == T) {
    cout << "YES" << endl;
    return 0;
  }
  for (i = 0; i < second.size(); i++) {
    if (second[i] == T[j]) {
      if (i > 0) {
        if (second[i - 1] != T[j - 1]) {
          cnt++;
        }
      }
      j++;
      if (j >= 7 && cnt <= 1) {
        j = 0;
        cout << "YES" << endl;
        return 0;
      }
    }
  }
  cout << "NO" << endl;
  return 0;
}
