#include <bits/stdc++.h>
using namespace std;
int main() {
  cin.tie(0);
  ios::sync_with_stdio(false);
  string s;
  cin >> s;
  if (s == "keyence") {
    cout << "YES" << endl;
  } else {
    long long l = 0;
    long long r = 7;
    string ans = "keyence";
    for (long long i = 0; i < (long long)7; i++) {
      if (s[i] == ans[i]) {
        l++;
      } else {
        break;
      }
    }
    for (long long i = 0; i < (long long)7; i++) {
      if (s[s.size() - 1 - i] == ans[6 - i]) {
        r--;
      } else {
        break;
      }
    }
    if (r - l <= 1) {
      cout << "YES" << endl;
    } else {
      cout << "NO" << endl;
    }
  }
}
