#include <bits/stdc++.h>
using namespace std;
using ll = long long;
const ll mod = 1e9 + 7;
int main() {
  string S;
  cin >> S;
  string ans = "keyence";
  int cnt = 0;
  for (int i = 0; i < S.size(); i++) {
    if (S[i] == ans[cnt]) {
      cnt++;
    }
    if (cnt == 7) {
      cout << "YES";
      return 0;
    }
  }
  cout << "NO";
}
