#include<iostream>
#include<algorithm>
#include<functional>
using namespace std;
int main(){
  string a;
  string b=a[0]+a[1]+a[2];
  string c=a[a.size()-4]+a[a.size()-3]+a[a.size()-2]+a[a.size()-1];
  cin>>a;
  if(b=='key' and c=='ence')
    cout<<"YES"<<endl;
  else
    cout<<"NO"<<endl;
}
