#include <bits/stdc++.h>
using namespace std;
using ll = long long;
const int mod = 1000000007;
int main() {
  string s, key = "keyence";
  int n = 0;
  cin >> s;
  for (int i = 0; i < s.size(); i++) {
    if (n == 7) break;
    if (s[i] == key[n]) n++;
  }
  if (n == 7)
    cout << "YES" << endl;
  else
    cout << "NO" << endl;
}
