S1 = "keyence"
S2 = input()
s1 = ""
s2 = ""

for i in range(0, 7):
    for j in range(0, i):
        s1 = s1 + S1[j]
        for k in range(i, 7):
            s2 = s2 + S1[k]

if 'S2'.find('s1') and 'S'.find('s2') > -1:
        print('YES')
else:
        print('NO')