#include <bits/stdc++.h>
using ll = long long;
using namespace std;
const ll MOD = 1e9 + 7;
int N, H, W;
double arr[3000];
double dp[3000][3000];
vector<int> v1, v2;
int main() {
  cin.tie(0);
  ios::sync_with_stdio(false);
  string s;
  cin >> s;
  int t1 = 0;
  string t = "keyence";
  int idx = 0;
  int t2 = -1;
  for (int i = 0; i < s.size(); ++i) {
    if (idx < t.size() && s[i] == t[idx])
      idx++;
    else {
      if (t2 != idx) {
        t2 = idx;
        t1++;
      }
    }
  }
  if (t1 == 1 && idx == t.size()) {
    cout << "YES" << endl;
  } else {
    cout << "NO" << endl;
  }
  return 0;
}
