#include <bits/stdc++.h>
using namespace std;
int main() {
  string a = "keyence";
  string s;
  cin >> s;
  int l = s.length();
  int c = 0;
  for (int i = 0; i < 7; i++) {
    for (int j = i; j < l; j++) {
      if (a[i] == s[j]) {
        c++;
        break;
      }
    }
  }
  if (c == 7) {
    cout << "YES";
  } else {
    cout << "NO";
  }
  return 0;
}
