#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();
  for (int i = 0; i < (int)(n); i++) {
    p = i;
    d = false;
    count = 0;
    d2 = false;
    while (1) {
      if (s[p] == k[count]) {
        count++;
        if (d) d2 = true;
      } else {
        if (!d) d = true;
        if (d2) break;
      }
      if (count == 7) {
        ans = "YES";
        break;
      }
      p++;
      if (p >= n) break;
    }
  }
  cout << ans;
  return 0;
}
