#include <bits/stdc++.h>
using namespace std;
string target = "keyence";
int main() {
  string s;
  cin >> s;
  int n = s.size();
  int spritc = 0;
  int i = 0;
  int stringn = 0;
  bool intarg = true;
  string ans = "NO";
  while (s[i] != 'k') {
    i++;
    if (i == n) {
      cout << ans << endl;
      return 0;
    }
  }
  if (i != 0) spritc++;
  while (i < n) {
    if (s[i] == target[stringn]) {
      if (s[i] != s[i + 1]) stringn++;
      if (intarg == false) {
        spritc++;
      }
      intarg = true;
    } else {
      intarg = false;
      if (i == n - 1) spritc++;
    }
    i++;
  }
  if (spritc < 2) ans = "YES";
  cout << ans << endl;
}
