Izayoi Sakuya(いざよい·さくや) is the chief maid of the Embodiment of Scarlet Devil.
She's good at throwing fly knife.
One day she wants to practise throwing it, so she puts T targets in an area N * M. Then Sakuya select a position to stand and start throwing the knives.
You can imagine that the track of a fly knife is a ray and start from the postion where Sakuya stand. That means the knife can shoot all the targets where it goes through.
But Sakuya is lazy that she don't want to caculate anything. Can you help her to select a position that Sakuya can throw least fly knives and shoot all the targets?
For each case, you should output a coordinate, indicates the position (x, y) Sakuya should choose. If there're several position she can choose, then choose the minimum one.
Then you should output the number of the fly knives.
Notice that you can't choose a coordinate where there's a target.