#include <bits/stdc++.h>
using namespace std;
int solve();
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  solve();
  return 0;
}
string s;
string t = "keyence";
int k = 0;
int solve() {
  cin >> s;
  for (int i = 0; i < (int)s.size(); ++i) {
    if (k == (int)t.size()) {
      break;
    }
    if (s[i] == t[k]) {
      k++;
    }
  }
  if (k == (int)t.size()) {
    cout << "YES\n";
    return 0;
  }
  cout << "NO\n";
  return 0;
}
