#include <bits/stdc++.h>
using namespace std;
int main() {
  ios::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  string s;
  cin >> s;
  int len = s.size();
  string ke = "keyence";
  int j = 0;
  for (int i = 0; i < len; i++) {
    if (s[i] == ke[j]) {
      j++;
    }
    if (j == 7) {
      cout << "YES"
           << "\n";
      return 0;
    }
  }
  cout << "NO"
       << "\n";
  return 0;
}
