RHTML Markup Language 1.0#4108

RHTML Markup Language 1.0

1 saniye
64 megabayt
Kolay

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.

Giriş

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.

Çıktı

Output the transformed text without any tags.

Örnekler

Örnek 1

Loading
Loading