#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using ld = long double;
using ull = unsigned long long;
using vi = vector<int>;
using vvi = vector<vector<int>>;
using vl = vector<ll>;
using vll = vector<vector<ll>>;
using pii = pair<int, int>;
const double PI = acos(-1);
const double EPS = 1e-10;
const ll MOD = 1e9 + 7;
void cioacc() {
  cin.tie(0);
  ios::sync_with_stdio(false);
}
int main() {
  string s;
  cin >> s;
  string t = "keyence";
  bool fl = false;
  bool ans = true;
  for (ll i = (0); i < (7); i++) {
    if (s[i] != t[i]) {
      if (!fl) {
        fl = true;
        int id = (int)s.find(t[i], i);
        if (id + 1 == 0) {
          ans = false;
          break;
        } else
          s.erase(s.begin() + i, s.begin() + id);
      } else {
        ans = false;
        break;
      }
    }
  }
  if (s.size() != t.size()) ans = false;
  cout << (ans ? "YES" : "NO") << endl;
}
