#include <bits/stdc++.h>
using namespace std;
const int inf = 1 << 30;
const long long INF = 1ll << 60;
const double pi = acos(-1);
const double eps = 1e-9;
const long long mod = 1e9 + 7;
const int dx[4] = {0, 1, 0, -1}, dy[4] = {1, 0, -1, 0};
const string t = "keyence";
string s;
int main() {
  cin >> s;
  bool B = 0;
  int n = s.size();
  if (n == 7) {
    if (s == t) B = 1;
  } else {
    for (int i = 0; i <= 7; i++)
      if (s.substr(0, i) + s.substr(n - i - 1, 7 - i) == t) B = 1;
  }
  cout << (B ? "YES" : "NO") << endl;
}
