import java.util.*;
import java.lang.*;
import java.util.regex.*;
class Main
{
{
"12345 <RECTANGLE> 100 200 300 400 </RECTANGLE>".replaceAll("[</>]", "").replaceAll(" [^ ]+$", "")
);
}
}
aW1wb3J0IGphdmEudXRpbC4qOwppbXBvcnQgamF2YS5sYW5nLio7CmltcG9ydCBqYXZhLnV0aWwucmVnZXguKjsKCmNsYXNzIE1haW4KewoJcHVibGljIHN0YXRpYyB2b2lkIG1haW4gKFN0cmluZ1tdIGFyZ3MpIHRocm93cyBqYXZhLmxhbmcuRXhjZXB0aW9uCgl7CiAgICBTeXN0ZW0ub3V0LnByaW50bG4oCiAgICAgICAgIjEyMzQ1IDxSRUNUQU5HTEU+IDEwMCAyMDAgMzAwIDQwMCA8L1JFQ1RBTkdMRT4iLnJlcGxhY2VBbGwoIls8Lz5dIiwgIiIpLnJlcGxhY2VBbGwoIiBbXiBdKyQiLCAiIikKICAgICk7Cgl9Cn0=