#include <bits/stdc++.h>
using namespace std;
const int con = 1e9;
static const int INF = 0x3f3f3f3f;
static const int MOD = 998244353;
int main() {
  string s;
  cin >> s;
  int cnt = 0, ind = 0;
  string req = "keyence";
  for (int i = 0; i < req.size(); i++) {
    if (s.find(req.substr(0, i + 1)) != string::npos &&
        s.find(req.substr(i)) != string::npos) {
      puts("YES");
      return 0;
    }
  }
  cout << "NO";
  return 0;
}
