s = input()
ans = ['k', 'e', 'y', 'e', 'n', 'c', 'e']
count = 0
j = 0
for i in range(len(s)):
    if(ans[j] == s[i]):
        j += 1
    else:
        continue
if(j == 7):
    print('YES')
else:
    print('NO')