#include <bits/stdc++.h>
const int INF = 1e9;
const int MOD = 1e9 + 7;
const long long LINF = 1e18;
using namespace std;
int main(int argc, char const* argv[]) {
  string s;
  cin >> s;
  int n = s.length();
  int m = n - 7;
  for (int i = 0; i < (n); ++i) {
    string ans = "";
    for (int j = 0; j < (n); ++j) {
      if (j >= i && j < i + m) continue;
      ans.push_back(s[j]);
    }
    cout << ans << std::endl;
    if (ans == "keyence") {
      cout << "YES" << std::endl;
      return 0;
    }
  }
  cout << "NO" << std::endl;
  return 0;
}
