S = input()
f = False
for i in range(len(S)):
    s1 = S[:i]
    s2 = S[i:]
    if 'keyence' in s2:
        f = True
        break
    if 'k' in s1 and 'eyence' in s2:
        f = True
        break
    if 'ke' in s1 and 'yence' in s2:
        f = True
        break
    if 'key' in s1 and 'ence' in s2:
        f = True
        break
    if 'keye' in s1 and 'nce' in s2:
        f = True
        break
    if 'keyen' in s1 and 'ce' in s2:
        f = True
        break
    if 'keyenc' in s1 and 'e' in s2:
        f = True
        break
    if 'keyence' in s1:
        f = True
        break
if f:
    print('YES')
else:
    print('NO')