The official statement of a problem is always the one
in the PDF document. The HTML version of the statement
is also given to help you, but may contain some content
that is not well displayed. In case of doubt, always use the PDF.
Public test cases
Input
CO "Triangle";
PU;
PU;
PA10,10;
PD 2500,10,10,1500,10,10;
#
Output
PU;
PU;
MA 10,10;
PD;
MA 2500,10;
MA 10,1500;
MA 10,10;
#
Input
CO "Triangle";
PU;
PU;
PA10,10;
PD 2500,10,10,1500,10,10;
#
Output
PU;
PU;
MA 10,10;
PD;
MA 2500,10;
MA 10,1500;
MA 10,10;
#