#include <bits/stdc++.h>
using namespace std;
long long int INF = 1e18;
long long int MOD = 1e9 + 7;
int main() {
  string S, Sc;
  cin >> S;
  Sc = "keyence@";
  int pos = 0;
  for (int i = 0; i < S.size(); i++) {
    if (S[i] == Sc[pos]) {
      pos += 1;
    }
  }
  if (pos == 7) {
    cout << "YES" << endl;
  } else {
    cout << "NO" << endl;
  }
  return 0;
}
