#include <bits/stdc++.h>
using namespace std;
using ll = long long;
const int mod = 1000000007;
int main() {
  string s, key = "keyence";
  int n = 0, m = 0;
  cin >> s;
  for (int i = 0; i < s.size() && n < 7; i++) {
    if (s[i] == key[n])
      n++;
    else
      break;
  }
  for (int i = s.size() - 1; i >= 0 && m < 7; i--) {
    if (s[i] == key[6 - m])
      m++;
    else
      break;
  }
  if (n + m >= 6)
    cout << "YES" << endl;
  else
    cout << "NO" << endl;
}
