s = input()
t = 'keyence0'
j = 0
p = 0
flg = False

for i in range(len(s)):
    if s[i] == t[j]:
        j += 1
        if flg:
            p += 1
            flg = False
    else:
        flg = True
    if p == 2:
        break

if flg:
    p += 1

if j == 7:
    if p == 2:
        print('NO')
    else:
        print('YES')
else:
    print('NO')