#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";
  if (req == s) {
    cout << "YES";
    return 0;
  }
  for (int i = 1; i < req.size(); i++) {
    string ans;
    for (int j = i; j < req.size(); j++) {
      ans = s.substr(0, i) + s.substr(j);
    }
    if (ans == req) {
      cout << "YES";
      return 0;
    }
  }
  cout << "NO";
  return 0;
}
