#include <bits/stdc++.h>
using namespace std;
int main() {
  string s;
  cin >> s;
  int n = s.size();
  if (s == "keyence") {
    cout << "YES" << endl;
    return 0;
  }
  int a = 1;
  for (long long i = 0; i < 8; i++) {
    s.erase(i, i + n - 7);
    if (s == "keyence") {
      cout << "YES" << endl;
      a = 0;
      break;
    }
  }
  if (a) cout << "NO" << endl;
}
