#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using ld = long double;
using vi = vector<int>;
using vll = vector<ll>;
using P = pair<int, int>;
constexpr int INF = 1e9;
constexpr ll INFLL = 1e18;
constexpr int MOD = 1e9 + 7;
const ld PI = acosl(-1);
int main() {
  ios::sync_with_stdio(false);
  cin.tie(nullptr);
  string s;
  cin >> s;
  const string keyence = "keyence";
  for (int i = 0; i < keyence.length(); i++) {
    string tmp = keyence;
    string front = tmp.substr(0, i);
    string back = tmp.substr(i);
    if (s.find(front) != string::npos and s.find(back) != string::npos) {
      cout << "YES" << endl;
      return 0;
    }
  }
  cout << "NO" << endl;
  return 0;
}
