#include <bits/stdc++.h>
using namespace std;
int main() {
  string s;
  cin >> s;
  string ans = "No";
  for (int i = 0; i < s.length(); i++) {
    if (s[i] == 'k') {
      if (s.substr(i, 7) == "keyence") {
        ans = "Yes";
      }
    }
  }
  for (int i = 1; i < 7; i++) {
    if (s.substr(0, i) + s.substr(s.size() - (7 - i)) == "keyence") {
      ans = "Yes";
    }
  }
  cout << ans << endl;
  return 0;
}
