#include <bits/stdc++.h>
using namespace std;
signed main() {
  cin.tie(0);
  ios::sync_with_stdio(false);
  string s;
  cin >> s;
  string t = "keyence";
  string k;
  for (long long i = 0; i < 7; i++) {
    k += s[i];
  }
  if (k == t) {
    cout << "YES" << endl;
    return 0;
  }
  string l;
  for (long long i = s.size() - 7; i < s.size(); i++) {
    l += s[i];
  }
  if (l == t) {
    cout << "YES" << endl;
    return 0;
  }
  for (long long i = 0; i < s.size(); i++) {
    if (s[i] == 'k') {
      if (i || s[s.size() - 1] != 'e') {
        cout << "NO" << endl;
        return 0;
      }
      long long tc = 1;
      long long check = 0;
      for (long long j = i + 1; j < s.size(); j++) {
        if (s[j] == t[tc]) {
          tc++;
        } else {
          if (check) break;
          while (s[j] != t[tc]) j++;
          check = 1;
          j--;
        }
        if (tc == 7) {
          cout << "YES" << endl;
          return 0;
        }
      }
      break;
    }
  }
  cout << "NO" << endl;
  return 0;
}
