def main():
    S = input()
    s = 'keyence'
    for i in range(len(s)+1):
        if S.startswith(s[:i+1]) and S.endswith(s[-i-i:]): return True
    return False

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