#include <stdio.h>
int main(void){
    char s[101], j=0, i=0, sinkou=0, w=0;

    scanf("%s", s);

    while(s[i] == '\0'){
        if(sinkou == 0){
            if(s[i] = 'k'){
                sinkou = 1;
                w=0;
            }
            else if(w==0){
                j++;
                w++;
            }
            if(j>1)
                break;
        }
        if(sinkou == 1){
            if(s[i] = 'e'){
                sinkou = 2;
                w=0;
            }
            else if(w==0){
                j++;
                w++;
            }
            if(j>1)
                break;
        }
        if(sinkou == 2){
            if(s[i] = 'y'){
                sinkou = 3;
                w=0;
            }
            else if(w==0){
                j++;
                w++;
            }
            if(j>1)
                break;
        }
        if(sinkou == 3){
            if(s[i] = 'e'){
                sinkou = 4;
                w=0;
            }
            else if(w==0){
                j++;
                w++;
            }
            if(j>1)
                break;
        }
        if(sinkou == 4){
            if(s[i] = 'n'){
                sinkou = 5;
                w=0;
            }
            else if(w==0){
                j++;
                w++;
            }
            if(j>1)
                break;
        }
        if(sinkou == 5){
            if(s[i] = 'c'){
                sinkou = 6;
                w=0;
            }
            else if(w==0){
                j++;
                w++;
            }
            if(j>1)
                break;
        }
        if(sinkou == 6){
            if(s[i] = 'e'){
                sinkou = 7;
                w=0;
            }
            else if(w==0){
                j++;
                w++;
            }
            if(j>1)
                break;
        }
        if(sinkou == 7)
            break;
            
    }

    if(j <= 1 && sinkou ==7)
        printf("YES\n");
    else
        printf("NO\n");
    
    return 0;
}