#include <bits/stdc++.h>
using namespace std;
using P = pair<int, int>;
int main() {
  string s;
  cin >> s;
  string key = "keyence";
  int j = 0;
  string ans;
  for (int i = 0; i < (int)(s.size()); i++) {
    if (s[i] == key[j]) {
      ans.push_back(s[i]);
      j++;
    }
    if (j == 7) break;
  }
  if (ans == key)
    cout << "YES\n";
  else
    cout << "NO\n";
  return (0);
}
