#include <bits/stdc++.h>
using namespace std;
int main() {
  string k = "keyence";
  string s;
  cin >> s;
  string ans = "NO";
  int p = 0;
  bool d = false;
  bool d2 = false;
  int count = 0;
  int n = s.length();
  while (1) {
    if (s[p] == k[count]) {
      count++;
      if (d) d2 = true;
    } else {
      if (!d) d = true;
      if (d2) break;
    }
    if (count == 7) {
      if (!d)
        ans = "YES";
      else if (p == n - 1)
        ans = "YES";
      break;
    }
    p++;
    if (p >= n) break;
  }
  cout << ans;
  return 0;
}
