#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cout.precision(10);
  cout << fixed;
  string s;
  cin >> s;
  int n = s.size();
  string t = "keyence+";
  int i;
  for (i = 0; i < n; i++) {
    if (s[i] != t[i]) break;
  }
  int j;
  reverse(s.begin(), s.end());
  t.pop_back();
  reverse(t.begin(), t.end());
  t += "+";
  for (j = 0; j < n; j++) {
    if (s[j] != t[j]) break;
  }
  if (i + j >= 7) {
    cout << "Yes";
  } else
    cout << "No";
  return 0;
}
