#include <bits/stdc++.h>
using namespace std;
const int MOD = 1000000007;
int main() {
  cin.tie(0);
  ios::sync_with_stdio(false);
  string S;
  cin >> S;
  if (S == "keyence") {
    cout << "YES"
         << "\n";
  } else {
    if (S.substr(0, 3) == "key" && S.substr(S.length() - 4, 4) == "ence") {
      cout << "YES"
           << "\n";
    } else if ((int)S.find("keyence", 0) != -1) {
      cout << "YES"
           << "\n";
    } else {
      cout << "NO"
           << "\n";
    }
  }
  return 0;
}
