#include <bits/stdc++.h>
using namespace std;
string S, key = "keyence";
bool flag = false, done = false, memo = 0, db = false;
int main() {
  cin.tie(0);
  ios::sync_with_stdio(false);
  cin >> S;
  if (S.rfind(key)) {
    flag = true;
  }
  if (flag) {
    cout << "YES" << endl;
  } else {
    cout << "NO" << endl;
  }
}
