#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using ull = unsigned long long;
using pii = pair<int, int>;
int main() {
  ios::sync_with_stdio(false);
  cin.tie(0);
  string s;
  cin >> s;
  bool ans = false;
  string a = "keyence";
  int memo1 = 0;
  for (int i = 0; i < s.size(); i++) {
    if (a[i] != s[i]) break;
    memo1 = i + 1;
  }
  int memo2 = 0;
  if (memo1 < 7)
    for (int i = 0; i < a.size() - memo1 + 1; i++) {
      if (a[a.size() - 1 - i] != s[s.size() - 1 - i]) break;
      memo2 = i + 1;
    }
  if (memo1 + memo2 == a.size())
    cout << "YES" << endl;
  else
    cout << "NO" << endl;
  return 0;
}
