With the development of automation technology, more and more robots have been widely used in various areas. In a package transportation center, there are

robots responsible for the delivery of packages. The package transportation center can be regarded as an

grid, where the upper left corner is
)
and the lower right corner is
)
. Considering the actual situation, some (possibly zero) positions in the package transportation center may be unable to pass through (for example, they are blocked by shelves or walls). Let's call those positions
unreachable positions.
There are three types of robots listed below:
3. robot that can both move downwards and rightwards.
Robots are demanded to deliver the package from their starting positions to their target positions. For each of the

robots, Toilet-Ares is given its type, starting position, and target position. Toilet-Ares asks you to answer if the robot can complete the package delivery based on the map of the package transportation center.