RHTML Markup Language 1.0
The RHTML 1.0 hypertext markup language includes two pairs of tags: <up> and <down>.
The text enclosed within <up> tags should be converted to uppercase, while the text within <down> tags should be converted to lowercase. Your task is to transform the input text, which is written in RHTML 1.0 markup language, into plain text without any tags, applying the specified transformations. It is guaranteed that tags are not nested, and each opening tag has a corresponding closing tag. All lines are correctly formatted. The length of the text between tags ranges from 1 to 20 characters.
Input
The input consists of a single line containing text made up of Latin alphabet letters, spaces, and the aforementioned tags. The total length of the input line does not exceed 1024 characters.
Output
Output the transformed text without any tags.