RHTML Markup Language 1.0#4108

RHTML Markup Language 1.0

1 second
64 megabytes
Easy

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 the RHTML 1.0 markup language, into plain text without any tags, applying the described transformations.

It is guaranteed that tags are not nested, and that each opening tag has a corresponding closing tag. All input strings are correctly formatted. The length of the text between tags is from to characters, inclusive.

Input

The input consists of a single line containing Latin letters, spaces, and the described tags. The total length of the input line does not exceed characters.

Output

Output the transformed text without any tags.

Examples

Example 1

Loading
Loading