#include <bits/stdc++.h>
using namespace std;
using ll = long long;
const int inf = 1e9 + 7;
const ll longinf = (1LL << 63) - 600;
const ll mod = 1e9 + 7;
const int MAX = 1000000;
const int MOD = 1000000007;
int main() {
  string S;
  cin >> S;
  int N = S.size();
  string T = "keyence";
  for (int i = (int)(0); i < (int)(N); ++i) {
    for (int j = (int)(0); j < (int)(8); ++j) {
      if (S.substr(0, j) + S.substr(N - 7 + j, 7 - j) == T) {
        cout << "Yes" << endl;
        return 0;
      }
    }
  }
  cout << "No" << endl;
}
