#include <bits/stdc++.h>
using namespace std;
signed main() {
  string s;
  cin >> s;
  long long b = 0;
  long long cnt = 0;
  long long n = s.size();
  string a = "keyence";
  if (s == a) {
    cout << "YES" << endl;
  } else {
    for (long long i = 0; i < n; i++) {
      if (s.at(i) == a.at(b)) {
        b++;
        s.at(i) = '0';
      }
      if (6 < b) {
        break;
      }
    }
    for (long long i = 0; i < n - 1; i++) {
      if (s.at(i) == '0' & s.at(i + 1) != '0') {
        cnt++;
      }
    }
    if (cnt == 1) {
      cout << "YES" << endl;
    } else {
      cout << "NO" << endl;
    }
  }
}
