#include <bits/stdc++.h>
int main() {
  std::string str, sss = "keyence";
  std::cin >> str;
  if (-1 != (int)str.find("keyence")) {
    std::cout << "YES" << std::endl;
    exit(1);
  }
  if ((0 == (int)str.find("k")) && (-1 != (int)str.find("eyence"))) {
    std::cout << "YES" << std::endl;
    exit(2);
  }
  if ((0 == (int)str.find("ke")) && (-1 != (int)str.find("yence"))) {
    std::cout << "YES" << std::endl;
    exit(2);
  }
  if ((0 == (int)str.find("key")) && (-1 != (int)str.find("ence"))) {
    std::cout << "YES" << std::endl;
    exit(2);
  }
  if ((0 == (int)str.find("keye")) && (-1 != (int)str.find("nce"))) {
    std::cout << "YES" << std::endl;
    exit(2);
  }
  if ((0 == (int)str.find("keyen")) && (-1 != (int)str.find("ce"))) {
    std::cout << "YES" << std::endl;
    exit(2);
  }
  if ((0 == (int)str.find("keyenc")) && (-1 != (int)str.find("e"))) {
    std::cout << "YES" << std::endl;
    exit(2);
  }
  std::cout << "NO" << std::endl;
  return 0;
}
