S = input()

k = 'keyence'
now = ''
if S[:7] == k or S[-7:] == k:
    print('YES')
    exit()
if len(S) < 7:
    print('NO')
    exit()
for i in range(len(S)):
    now += S[i]
    if S[:i] != k[:i]:
        if S[-7+i:] == k[-7+i:]:
            print('YES')
            exit()
        else:
            print('NO')
            exit()
print('NO')