#include <bits/stdc++.h>
using namespace std;
const int MOD = 1000000007;
const long long LINF = 1e18;
const double EPS = 1e-9;
int main() {
  cin.tie(0);
  ios::sync_with_stdio(false);
  string s;
  cin >> s;
  int k = 0;
  string ans = "keyence";
  for (int i = 0; i < (s.size()); i++) {
    if (s[i] == ans[k]) {
      k++;
    }
  }
  if (k == 7) {
    cout << "YES" << endl;
  } else {
    cout << "NO" << endl;
  }
  return 0;
}
