#include <bits/stdc++.h>
using namespace std;
static const long long maxLL = (long long)1 << 62;
const long long MOD = 1000000007;
const long long INF = 1e18;
string s;
string t = "keyence";
signed main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cin >> s;
  long long cnt = 0;
  if (s == t) {
    cout << "YES" << '\n';
    return 0;
  }
  s = s + "aaaaaaaa";
  for (long long i = 0; i < 7; i++) {
    long long flag = 2;
    for (long long j = 0; j < (long long)s.size() - 8; j++) {
      if (s.substr(j, i + 1) == t.substr(0, i + 1) && flag == 2) {
        flag -= 1;
        j += i;
      }
      if (s.substr(j, 7 - (i + 1)) == t.substr(i + 1, 7 - (i + 1)) &&
          flag == 1) {
        cout << "YES" << '\n';
        return 0;
      }
    }
  }
  cout << "NO" << '\n';
  return 0;
}
