title: How to find the best seating arrangement in a theater for 2d array
body: <p>You run a small theater and each month, you have patrons mail in requests for pre-sale tickets.  You need to process these ticket requests and either tell them where their party will sit or explain to the patron why you can't complete their order.</p>
  
  <p>You have a few rules that you need to follow when you fill the orders:</p>
  
  <ol>
  <li>Fill as many orders as possible</li>
  <li>Put parties as close to the front as possible.</li>
  <li>If there are not enough seats available in the theater to handle a party, tell them "Sorry, we can't handle your party."</li>
  <li>Each party must sit in a single row in a single section.  If they won't fit, tell them "Call to split party".</li>
  </ol>
  
  <p>Your program must parse a theater layout and a list of ticket requests and produce a list of tickets or explanations in the same order as the requests.</p>
  
  <p>The theater layout is made up of 1 or more rows.  Each row is made up of 1 or more sections separated by a space.</p>
  
  <p>After the theater layout, there is one empty line, followed by 1 or more theater requests.  The theater request is made up of a name followed by a space and the number of requested tickets.</p>
  
  <p>Sample input:</p>
  
  <pre><code>6 6
  3 5 5 3
  4 6 6 4
  2 8 8 2
  6 6
  
  Smith 2
  Jones 5
  Davis 6
  Wilson 100
  Johnson 3
  Williams 4
  Brown 8
  Miller 12
  </code></pre>
  
  <p>Your program must produce results to standard output in the same order as the requests, with the name of the person who requested the ticket and either the row and section of the ticket or the explanations "Sorry, we can't handle your party" or "Call to split party."</p>
  
  <p>Sample output:</p>
  
  <p>```</p>
  
  <pre><code>Smith Row 1 Section 1
  Jones Row 2 Section 2
  Davis Row 1 Section 2
  Wilson Sorry, we can't handle your party.
  Johnson Row 2 Section 1
  Williams Row 1 Section 1
  Brown Row 4  Section 2
  Miller Call to split party.
  </code></pre>