def create_markdown_grid(rows=10, cols=3):
    with open("MDTBWE.md", "w", encoding="utf-8") as f:
        # First row with auto numbering starting from 1
        f.write("| " + " | ".join(str(i) for i in range(1, cols + 1)) + " |\n")
        
        # Second row with dashes
        f.write("|" + " --- |" * cols + "\n")
        
        # Third row and after
        for row_num in range(rows - 1):
            # First column with auto incrementing number starting from 0000
            f.write(f"| {row_num:04d} ")
            
            # Second column with [0000]( )
            f.write(f"| [{row_num:04d}]( ) ")
            
            # Other columns with empty cells
            f.write("|" + "      |" * (cols - 2) + "\n")

if __name__ == "__main__":
    create_markdown_grid()
