#include <bits/stdc++.h>
using namespace std;
const int mod = 1000000007;
const int INF = 1 << 28;
const double EPS = 1e-10;
string s;
string key = "keyence";
int main() {
  cin >> s;
  int n = s.size();
  int i = 0;
  while (i < 7 && key[i] == s[i]) {
    i++;
  }
  int j = 6;
  while (j >= 0 && key[j] == s[n - 1 - (6 - j)]) {
    j--;
  }
  if (i + 1 >= j) {
    cout << "YES" << endl;
  } else {
    cout << "NO" << endl;
  }
  return 0;
}
