s = list(input())
l = len(s)
key = ['k', 'e', 'y', 'e', 'n', 'c', 'e']

if s[0] == key[0]:
    if s[1] == key[1]:
        if s[2] == key[2]:
            if s[3] == key[3]:
                if s[4] == key[4]:
                    if s[5] == key[5]:
                        if s[6] == key[6]:
                            print('YES')
                            exit()
if s[l-7] == key[0]:
    if s[l-6] == key[1]:
        if s[l-5] == key[2]:
            if s[l-4] == key[3]:
                if s[l-3] == key[4]:
                    if s[l-2] == key[5]:
                        if s[l-1] == key[6]:
                            print('YES')
                            exit()

idx = 0
status, cont = True, False
for i in range(len(s)):
    if s[i] == key[idx]:
        if status:
            pass
        else:
            cont = False
        idx += 1
    else:
        if status:
            status, cont = False, True
        else:
            if cont:
                pass
            else:
                print('NO')
                exit()

    if idx == 7:
        print('YES')
        exit()

print('NO')