#include <bits/stdc++.h>
using namespace std;
void solve() {
  string want = "keyence";
  string s;
  cin >> s;
  int j = 0;
  for (int i = 0; i < s.size() && j < want.size(); i++) {
    if (s[i] == want[j]) j++;
  }
  if (j == want.size())
    cout << "YES\n";
  else
    cout << "NO\n";
}
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  solve();
}
