#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using P = pair<int, int>;
using vi = vector<int>;
using vc = vector<char>;
using vs = vector<string>;
using vll = vector<long long>;
using vvi = vector<vector<int>>;
using vvc = vector<vector<char>>;
using vvll = vector<vector<long long>>;
template <class T>
inline bool chmax(T &a, T b) {
  if (a < b) {
    a = b;
    return 1;
  }
  return 0;
}
template <class T>
inline bool chmin(T &a, T b) {
  if (b < a) {
    a = b;
    return 1;
  }
  return 0;
}
int main() {
  ios::sync_with_stdio(false);
  cin.tie(0);
  string s;
  cin >> s;
  string key = "keyence";
  if (s.find(key) != string::npos) {
    cout << "YES" << endl;
    return 0;
  }
  for (int i = 0; i < (int)(6); i++) {
    string key1 = key.substr(0, i + 1);
    string key2 = key.substr(i + 1, 7 - 1 - i);
    if (s.find(key1) != string::npos && s.find(key2) != string::npos) {
      cout << "YES" << endl;
      return 0;
    }
  }
  cout << "NO" << endl;
}
