Everyone knows that Kirisame Marisa(きりさめ·まりさ) often has affaires with other witches in TouHou.
For example, she has an affair with Reimu today and tomorrow is Flandre.
You have to make clear that how many witches she has affairs with.
For each case, you should output like that:
At the first line, you should output how many witches Marisa has affaires with;
Then each line output like that:
The name of the witch, the likability with that witch and the time(s) they have affaires. Order by likability descending.
If their likabilities are the same, then order by affair times descending.
If their likabilities and affair times are the same, then order by lexicographical order increasing.