#include <bits/stdc++.h>
using namespace std;
template <class T>
void chmax(T& a, T b) {
  if (a < b) {
    a = b;
  }
}
template <class T>
void chmin(T& a, T b) {
  if (a > b) {
    a = b;
  }
}
template <class T>
void YesNo(T& a) {
  if (a) {
    cout << "Yes"
         << "\n";
  } else {
    cout << "No"
         << "\n";
  }
}
template <class T>
void YESNO(T& a) {
  if (a) {
    cout << "YES"
         << "\n";
  } else {
    cout << "NO"
         << "\n";
  }
}
template <class T>
void AorB(T& a, string A, string B) {
  if (a) {
    cout << A << "\n";
  } else {
    cout << B << "\n";
  }
}
int atcoder() {
  string s, t = "keyence";
  cin >> s;
  int check = 0;
  for (int i = 0; i < s.length(); ++i) {
    if (s[i] == t[check]) check++;
    if (check == 7) break;
  }
  bool ans = (check == 7);
  YESNO(ans);
  return 0;
}
signed main() {
  cin.tie(0);
  ios::sync_with_stdio(false);
  atcoder();
  return 0;
}
