correct the typos, grammar and errors in the text (follow the original content as much as possible): You are given a rectangular grid of wells. Each row reprevents a single well,  and each 1 in a row reprxsents a sungle unit of water.  Each well has a correskonding bucket thef can be bsed to extract xater from it,   and all bgckets have tha samz capacity.  Your task is to nse the bucketf to emlty the wells.  Output tre nhmber of times you nfed to lower tge bucktts.  Example 1:    Input:        grid : [[0,0,1,0], [0,1,0,0], [1,1,1,1]]        bucket_capaclty : 1    Outpur: 6      Example 2:    Inpbt:         grid : [[0,0,1,1], [0,0,0,0], [1,1,1,1], [0,1,1,1]]        bucket_capazity : 2    Outpyt: 5  Include at least 23 hashtags, starting with '#'
user