s = input()
if s == 'keyence':
    print('YES')
    quit()
for i in range(len(s)):
    for j in range(i, len(s)):
        if 'keyence' == s.replace(s[i:j+1], ''):
            print('YES')
            quit()
print('NO')
