s = input()
ans = 'NO'
if 14 < len(s):
    ans = 'NO'
elif s == 'keyence' or s == 'keyofscience':
    ans = 'YES'
else:
    for i in range(len(s)):
        a = s[:i]+s[i+1:]
        if a == 'keyence' or a == 'keyofscience':
            ans = 'YES'
print(ans)
