#include <bits/stdc++.h>
using namespace std;
const int SIZE = 2e5 + 4;
const int dx[8] = {1, 0, -1, 0, 1, -1, -1, 1};
const int dy[8] = {0, 1, 0, -1, 1, 1, -1, -1};
void fastio() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
}
void solveTest() {
  string s;
  cin >> s;
  int n = s.size();
  string t = "keyence";
  int j = 0;
  int cnt = 0;
  vector<int> v;
  for (int i = 0; i < n; i++) {
    if (s[i] == t[j]) {
      v.push_back(i);
      j++;
    }
  }
  if (j == 7) {
    for (int i = 1; i < v.size(); i++) {
      int d = v[i] - v[i - 1];
      if (d > 1) cnt++;
    }
    if (cnt > 1)
      cout << "NO" << endl;
    else
      cout << "YES" << endl;
  } else {
    cout << "NO" << endl;
  }
  return;
}
int main() {
  fastio();
  int t = 1;
  while (t--) {
    solveTest();
  }
  return 0;
}
