#include <bits/stdc++.h>
template <class T>
inline bool chmax(T& a, T b) {
  if (a < b) {
    a = b;
    return 1;
  }
  return 0;
}
template <class T>
inline bool chmin(T& a, T b) {
  if (a > b) {
    a = b;
    return 1;
  }
  return 0;
}
using namespace std;
string target = "keyence";
int main(void) {
  string s;
  cin >> s;
  for (int i = 0; i < (int)8; i++) {
    string f = s.substr(0, i), l = s.substr(s.size() - (7 - i), (7 - i));
    if (f + l == target) {
      cout << "Yes" << endl;
      return 0;
    }
  }
  cout << "No" << endl;
}
