#include <bits/stdc++.h>
using namespace std;
const int mod = 1000000007;
void solve() {
  string s;
  cin >> s;
  if (s == "keyence") {
    cout << "Yes";
    return;
  }
  int n = s.length();
  for (int i = 0; i < n; i++) {
    for (int j = i; j < n; j++) {
      string x = "";
      for (int k = 0; k < n; k++) {
        if (k >= i && k <= j) {
          continue;
        } else {
          x.push_back(s[k]);
        }
      }
      if (x == "keyence") {
        cout << "YES";
        return;
      }
    }
  }
  cout << "NO";
}
int main() {
  int y;
  y = 1;
  while (y--) {
    solve();
  }
}
