#include <bits/stdc++.h>
using namespace std;
using ll = long long;
const int inf = 1000000007;
const int MOD = 1000000007;
const long long INF = 1000000000000000007;
string s;
int main() {
  cin >> s;
  string t = "keyence";
  int cnt = 0;
  for (int i = 0; i <= s.size() && cnt < 7; i++) {
    if (s[i] == t[cnt]) {
      cnt++;
    }
  }
  if (cnt == 7) {
    cout << "YES" << endl;
    return 0;
  }
  cout << "NO" << endl;
}
