#include <bits/stdc++.h>
using namespace std;
const long long int m = pow(10, 9) + 7;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  string s, s1;
  cin >> s;
  s1 = "keyence";
  int j = 0;
  for (int i = 0; i < s.length(); i++) {
    if (s1[j] == s[i]) j++;
  }
  if (j == s1.length())
    cout << "YES" << endl;
  else
    cout << "NO" << endl;
  return 0;
}
