s = input()

check = 0
re = 0
t = 'keyence'
len = 0
ans = 0
for i in s:
    if t[len] == i and len < 7:
        len += 1
        re = 0
    else:
        if check == 0:
            check = 1
            re = 1
        elif re == 1:
            tmp = 1
        else:
            ans = 1

if ans == 0 and len == 7:
    print('YES')
else:
    print('NO')



    
