#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 = j;
    } else {
      j++;
    }
    if (j == 7) {
      cout << "YES" << endl;
      return 0;
    }
    i++;
  }
  while (i < s.size() - co) {
    for (int k = (j); k < (7); ++k) {
      int x = 0;
      if (s[i + x] != key[j + x]) break;
      if (j + x == 6) {
        cout << "YES" << endl;
        return 0;
      }
    }
    i++;
  }
  cout << "NO" << endl;
  return 0;
}
