#include <bits/stdc++.h>
using namespace std;
const int MOD = 1e9 + 7;
int main() {
  string s;
  cin >> s;
  string t = "keyence";
  int j = 0;
  int cnt = 0;
  for (int i = 0; i < s.length(); ++i) {
    if (s[i] == t[j]) {
      if (cnt == 1) {
        cnt = 2;
      }
      ++j;
    } else {
      if (cnt == 0) {
        ++cnt;
      } else if (cnt == 2) {
        cnt = 3;
        break;
      }
    }
  }
  if (cnt <= 2 && j == t.length()) {
    cout << "YES" << endl;
  } else {
    cout << "NO" << endl;
  }
  return 0;
}
