x = input()
l = len(x)
flag = 0
for i in range(l):
    for j in range(l-1):
        res = x[0:i] + x[j:l]
        if(res == 'keyence'):
            flag = 1
if(flag == 1):
    print('YES')
else:
    print('NO')