#include <bits/stdc++.h>
using namespace std;
const int INF = 1e9;
const long long LINF = 1e18;
const double EPS = 1e-9;
long long gcd(long long a, long long b) { return b ? gcd(b, a % b) : a; }
long long lcm(long long a, long long b) { return a / gcd(a, b) * b; }
int main() {
  string s;
  cin >> s;
  int n = s.size();
  string t = "";
  for (int(i) = 0; (i) < (int)(n); i++) {
    for (int(j) = 0; (j) < (int)(n - i); j++) {
      t = s;
      s.substr(i, j) = "";
      if (s == "keyence") {
        cout << "YES" << endl;
        return 0;
      }
      s = t;
    }
  }
  cout << "NO" << endl;
  return 0;
}
