S = input()
s = ''
for c in S:
    if c=='k':
        s += c
    elif c=='e' and s=='k':
        s += c
    elif c=='y' and s=='ke':
        s += c
    elif c=='e' and s=='key':
        s += c
    elif c=='n' and s=='keye':
        s += c
    elif c=='c' and s=='keyen':
        s += c
    elif c=='e' and s=='keyenc':
        s += c
print('YES' if s=='keyence' else 'NO')
