#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 = "keyence";
  string t;
  cin >> t;
  int n = t.size();
  bool flag1 = false;
  int i = 0;
  int j = 0;
  while (i < n) {
    if (t.at(i) == s.at(j)) {
      i++;
      j++;
    } else {
      i++;
      while (true) {
        if (t.at(i) != s.at(j)) {
          i++;
        } else {
          break;
        }
      }
      if (flag1) {
        cout << "NO" << endl;
        return 0;
      }
      flag1 = true;
    }
  }
  cout << "YES" << endl;
  return 0;
}
