s = input()

if s == 'keyence':
    print('YES')
    exit(0)

#if s.startswith('key') and s.endswith('ence'):
#    print('YES')

if s[0] == 'k' and s[1] == 'e' and s[2] == 'y' and s[-4] == 'e' and s[-3] == 'n' and s[-2] == 'c' and s[-1] == 'e':
    print('YES')

else:
    print('NO')
