#include <bits/stdc++.h>
using namespace std;
int main() {
  string s;
  cin >> s;
  int n = s.size();
  vector<char> key(7);
  bool ans = false;
  for (int i = 1; i < 6; i++) {
    for (int j = 0; j < n - i + 1; j++) {
      for (int k = 0; k < i; k++) {
        key.at(k) = s.at(j + k);
      }
      for (int l = j + i; l < n - 6 + i; l++) {
        for (int k = 0; k < 7 - i; k++) {
          key.at(i + k) = s.at(l + k);
        }
        if (key.at(0) == 'k' && key.at(1) == 'e' && key.at(2) == 'y' &&
            key.at(3) == 'e' && key.at(4) == 'n' && key.at(5) == 'c' &&
            key.at(6) == 'e')
          ans = true;
        if (ans) break;
      }
      if (ans) break;
    }
    if (ans) break;
  }
  if (ans)
    cout << "Yes" << endl;
  else
    cout << "No" << endl;
  return 0;
}
