#include <bits/stdc++.h>
using ll = long long;
int main() {
  std::string s;
  std::cin >> s;
  std::string keyence = "keyence";
  for (int i = 0; i < keyence.size() + 1; i++) {
    if (s.substr(0, i) + s.substr(s.size() - (keyence.size() - i)) == keyence) {
      std::cout << "Yes";
      return 0;
    }
  }
  std::cout << "No";
  return 0;
}
