#include <bits/stdc++.h>
using namespace std;
int main() {
  ifstream fin("input.txt", ios::in);
  ios_base::sync_with_stdio(false);
  cout.tie(0);
  cin.tie(0);
  cout << setprecision(10);
  cout << fixed;
  string s;
  string f = "keyence";
  cin >> s;
  string t = s;
  if (t.find(f) >= 0 && t.find(f) <= t.size()) return cout << "YES", 0;
  for (int i = 0; i < s.size(); i++) {
    for (int j = 0; j < s.size() - i; j++) {
      t = s;
      t.erase(i, j);
      if (t.find(f) >= 0 && t.find(f) <= t.size()) {
        return cout << "YES", 0;
      }
    }
  }
  cout << "NO";
}
