#include <bits/stdc++.h>
using namespace std;
const long long int mod = 1e9 + 7;
int main() {
  string s;
  cin >> s;
  string t = "keyence";
  int str = 0, end = 0, j = 0;
  int n = s.size();
  bool fi = true;
  for (int i = 0; i < n; i++) {
    if (s[i] == t[j])
      j++;
    else if (fi) {
      str = i;
      fi = false;
    } else
      end = i;
  }
  s.erase(s.begin() + str, s.begin() + end + 1);
  if (s == t)
    cout << "Yes" << endl;
  else
    cout << "No" << endl;
  return 0;
}
