#include <bits/stdc++.h>
using namespace std;
string s;
string c = "keyence";
int main() {
  cin >> s;
  int i = 0, j = 0;
  while (i < s.length()) {
    if (s[i] == c[j]) {
      j++;
    }
    i++;
  }
  if (j == 7)
    cout << "YES";
  else
    cout << "NO";
  return 0;
}
