#include <bits/stdc++.h>
using namespace std;
map<int, int> dp;
int dx[4] = {0, 1, 0, -1};
int dy[4] = {1, 0, -1, 0};
unsigned long H, W;
int main() {
  cin.tie(0);
  ios::sync_with_stdio(false);
  string S;
  string answer = "keyence";
  cin >> S;
  unsigned long n = S.size();
  int pos = S.find(answer);
  if (pos == -1) {
    cout << "NO" << endl;
    return 0;
  }
  if (pos == 0 || pos == n - 7) {
    cout << "YES" << endl;
    return 0;
  } else {
    cout << "NO" << endl;
  }
  return 0;
}
