#include <bits/stdc++.h>
using namespace std;
void err(istream_iterator<string> it) {}
template <typename T, typename... Args>
void err(istream_iterator<string> it, T a, Args... args) {
  cerr << *it << " = " << a << endl;
  err(++it, args...);
}
long long power(long long x, unsigned long long y) {
  if (y == 0)
    return 1;
  else if (y % 2 == 0)
    return power(x, y / 2) * power(x, y / 2);
  else
    return x * power(x, y / 2) * power(x, y / 2);
}
int main() {
  ios::sync_with_stdio(false);
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  ;
  string str;
  cin >> str;
  if (str == "keyence") {
    cout << "YES";
    return 0;
  }
  for (long long i = 0; i < str.length(); i++) {
    for (long long j = i; j < str.length(); j++) {
      string temp = str;
      temp.erase(i, j - i + 1);
      cout << temp << endl;
      if (temp == "keyence") {
        cout << "YES";
        return 0;
      }
    }
  }
  cout << "NO";
  return 0;
}
