def main():
    S = input()
    s = 'keyence'
    for i in range(len(s)+1):
        j = True
        for j in range(i):
            if s[j] != S[j]:
                j = False
                break
        for j in range(len(s)-i):
            if s[-1-j] != S[-1-j]:
                j = False
                break
        if j:
            return True
    return False

if __name__ == '__main__':
    print('YES' if main() else 'NO')