#include <bits/stdc++.h>
const long long mod = 1e9 + 7;
const long long inf = 1e18;
using namespace std;
string s, str = "keyence";
int main() {
  cin >> s;
  long long flag = -2;
  long long idx = 0, i = 0;
  while (i < s.size()) {
    if (s[i] == str[idx])
      idx++;
    else {
      if (flag == -2)
        flag = i;
      else {
        if (flag == i - 1)
          flag = i;
        else {
          idx = 0;
          break;
        }
      }
    }
    i++;
  }
  if (idx >= 7)
    cout << "YES" << endl;
  else
    cout << "NO" << endl;
  return 0;
}
