s=input()
a='keyence'
i=0
f1=False
f2=False
for c in s:
    if c==a[i]:
        f1=False
        i+=1
    else:
        if not f1 and f2:
            print('NO')
            exit()
        else:
            f1=True
            f2=True
if i==7:
    print('YES')
else:
    print('NO')