#include <bits/stdc++.h>
using namespace std;
using ll = long long;
const ll mod = 1e9 + 7;
int main() {
  string S;
  cin >> S;
  string ans = "keyence";
  int cnt = 0;
  int errflag = 0;
  int err = 0;
  for (int i = 0; i < S.size(); i++) {
    if (S[i] == ans[cnt]) {
      cnt++;
      if (errflag == 1) {
        err++;
        errflag = 0;
      }
    } else {
      errflag = 1;
    }
    if (err >= 2) {
      cout << "NO";
      return 0;
    }
  }
  if (errflag == 1) {
    err++;
    errflag = 0;
  }
  if (err >= 2) {
    cout << "NO";
    return 0;
  }
  if (cnt == 7) {
    cout << "YES";
    return 0;
  }
  cout << "NO";
}
