#include <bits/stdc++.h>
const long long mod = 1e9 + 7;
const long long INF = 2 * 1e18;
const int inf = 1e9 + 7;
using namespace std;
int main(void) {
  cin.tie(0);
  ios::sync_with_stdio(false);
  string s;
  string t = "keyence";
  cin >> s;
  for (int i = 0; i < s.size(); i++) {
    if (s[i] == 'k') {
      int p = i;
      int j = 0;
      while (s[p] == t[j] && p < s.size() && j < t.size()) {
        p++;
        j++;
      }
      int x = j;
      for (int k = p; k < s.size(); k++) {
        x = j;
        if (s[k] == t[x]) {
          while (s[k] == t[x] && k < s.size() && x < t.size()) {
            k++;
            x++;
          }
        }
      }
      if (x == t.size()) {
        cout << "YES" << endl;
        return 0;
      }
    }
  }
  cout << "NO" << endl;
}
