#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;
  int i = 0;
  if (s[i] == 'k') {
    while (s[i] == t[i] && i < t.size()) {
      i++;
    }
  }
  if (i == t.size()) {
    cout << "YES" << endl;
    return 0;
  } else {
    for (int j = i; j < s.size(); j++) {
      int p = i;
      int k = j;
      if (s[j] == t[p]) {
        while (s[k] == t[p] && k < s.size() && p < t.size()) {
          k++;
          p++;
        }
      }
      if (p == t.size()) {
        cout << "YES" << endl;
        return 0;
      }
    }
  }
  cout << "NO" << endl;
}
