SUSTech Cinema is open for business! There are two ticket offices and all the students form two queues. It takes each student one minute to buy his ticket(s). The students can be separated into \(n\) groups each with one or two people. To save time, two students in the same group will not queue up in the same line.
For the two-students group, if one group member has bought the tickets, the other one will leave the queue immediately. Also, if two students get to the ticket windows at the same time, then they will buy their own ticket respectively.
Now LowbieH will give the description of the queueing situation, can you tell him the waiting time for each group?