#s = list(map(int, input().split()))
s = input()
yojou = len(s) - 7

for i in range(yojou + 1):
    # print(s[0:i] + s[i + yojou:])
    if s[0:i] + s[i + yojou:] == 'keyence':
        print("YES")
        exit(0)
print("NO")
