#include <bits/stdc++.h>
using namespace std;
int kvalue[3000];
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  string s;
  cin >> s;
  int n = s.size();
  int j = 0;
  string t = "keyence";
  int m = t.size();
  int breaks = 0;
  string answer = "NO\n";
  for (int i = 0; i < n; i++) {
    if (s[i] != t[j]) {
      breaks++;
      if (breaks > 1) {
        break;
      }
      while (s[i] != t[j] && i < n) {
        i++;
      }
      i--;
    } else
      j++;
    {
      if (j == m) {
        answer = "YES\n";
        break;
      }
    }
  }
  cout << answer << "\n";
  return 0;
}
