s = list(input())
n = len(s)
a = ['k','e','y','e','n','c','e']
flag = [False]*7
count = 0
i = 0;j=0
while i<7 and i+j<n:
    if a[i]!=s[i+j]:
        count += 1
        while i+j < n:
            if a[i]==s[i+j]:
                flag[i] = True
                break
            else:
                j += 1
    else:
        flag[i] = True 
    i += 1
b = 0
for i in flag:
    if i:
        b += 1
        
if b==7 and count<2:
    print('YES')
else:
    print('NO')