def m():
    S = input()
    a = 'keyence'
    x = 0
    for i in S:
        if x >=6:
            break
        if i == a[x]:
            x += 1
            continue
    if x >=6:
        return 'YES'
    else:
        return 'NO'

print(m())