#include <bits/stdc++.h>
using namespace std;
const int INT_INF = 2147483646;
const long long LL_INF = 9223372036854775807;
bool SecondCompare(const pair<int, int> &a, const pair<int, int> &b) {
  return a.second < b.second;
}
bool SecondCompareDes(const pair<int, int> &a, const pair<int, int> &b) {
  return a.second > b.second;
}
string s;
int f;
string ans = "keyence";
int pos;
int main() {
  cin >> s;
  for (int i = 0; i < s.length(); i++) {
    if (ans[pos] == s[i]) {
      if (f == 1) f = 2;
      ++pos;
    } else {
      if (f == 0)
        f = 1;
      else if (f == 2) {
        break;
      }
    }
  }
  if (pos == ans.length())
    cout << "YES\n";
  else
    cout << "NO\n";
}
