#include <bits/stdc++.h>
using namespace std;
const long long MOD = 1e9 + 7;
const long long INF = 1e18;
int main() {
  cin.tie(0);
  ios::sync_with_stdio(false);
  string s;
  cin >> s;
  string keyence = "keyence";
  int n = s.length();
  bool flag = true;
  int kenri = -1;
  int itr = 0;
  for (int i = 0; i < (int)(n); ++i) {
    if (s[i] == keyence[itr]) {
      itr++;
    } else {
      if (kenri == -1 || kenri == i - 1) {
        kenri = i;
      } else {
        flag = false;
        break;
      }
    }
  }
  if (flag && itr == 7)
    cout << "YES" << endl;
  else {
    cout << "NO" << endl;
  }
}
