#include <bits/stdc++.h>
using namespace std;
template <typename T1, typename T2>
inline bool chmin(T1 &a, T2 b) {
  if (a > b) {
    a = b;
    return 1;
  }
  return 0;
}
template <typename T1, typename T2>
inline bool chmax(T1 &a, T2 b) {
  if (a < b) {
    a = b;
    return 1;
  }
  return 0;
}
string s;
string t = "keyence";
int main() {
  cin >> s;
  int n = s.size();
  if (n < 7) {
    cout << "No"
         << "\n";
    ;
    return 0;
  }
  int r = 0, l = 0;
  for (long long i = 0; i < 7; i++) {
    if (s[i] == t[i]) {
      l = i + 1;
    } else {
      break;
    }
  }
  for (long long i = 0; i < 7; i++) {
    if (s[n - 1 - i] == t[6 - i]) {
      r = i + 1;
    } else {
      break;
    }
  }
  if (l + r >= 7) {
    cout << "Yes"
         << "\n";
    ;
  } else {
    cout << "No"
         << "\n";
    ;
  }
  return 0;
}
