#include <bits/stdc++.h>
using namespace std;
int main() {
  string s;
  cin >> s;
  string a = "keyence";
  int index1 = 0;
  int index2 = 0;
  while (index1 < s.length() && index2 < a.length()) {
    if (s[index1] == a[index2]) {
      index1++;
      index2++;
    } else
      index1++;
  }
  if (index2 == a.length()) {
    cout << "YES";
  } else
    cout << "NO";
}
