#include <bits/stdc++.h>
using namespace std;
using ll = long long;
int main() {
  string s;
  cin >> s;
  vector<char> keyence = {'k', 'e', 'y', 'e', 'n', 'c', 'e'};
  int count = 0;
  bool flag = false, ch = false;
  for (int i = 0; i < s.size(); i++) {
    if (s[i] == keyence[0]) {
      count++;
      i++;
      for (; i < s.size(); i++) {
        if (s[i] == keyence[count]) {
          count++;
          if (count == 7) {
            flag = true;
            break;
          }
        } else {
          i++;
          for (; i < s.size(); i++) {
            if (s[i] == keyence[count]) {
              count++;
              ch++;
              if (count == 7) {
                flag = true;
                break;
              }
            } else {
              if (ch) {
                break;
              }
            }
          }
          break;
        }
      }
    }
  }
  if (flag) {
    cout << "Yes" << endl;
  } else {
    cout << "No" << endl;
  }
}
