Redaksiya
The solution of Subtask 1 is straightforward – since there is no person between friends forming a couple, we can send all couples to a date without having to do any swaps. This requires actions.
Similarly, in Subtask 2, we process friends from