#include <bits/stdc++.h>
using namespace std;
int main() {
  cin.tie(0);
  ios::sync_with_stdio(false);
  string s;
  cin >> s;
  string key = "keyence";
  int i = 0, j = 0, co = 0;
  while (i < s.size()) {
    if (s[i] != key[j]) {
      co++;
      while (s[i] != key[j]) i++;
      i--;
    } else {
      j++;
    }
    if (j == 7) {
      cout << "YES" << endl;
      return 0;
    }
    if (co == 2) {
      cout << "NO" << i << j << endl;
      return 0;
    }
    i++;
  }
  cout << "NO" << endl;
  return 0;
}
