| acmsguru |
|---|
| Finished |
UP
/UP
and
DOWN
/DOWN
. The
UP
/UP
tag capitalizes all letters inside its body (between an open tag and a close one), and
DOWN
/DOWN
makes all inside the body letters lowercase. You are given the text consisting of latin letters and tags. Your task is to write the text right as it will be shown in the Bernet Explorer browser window. Tags in the text are arranged correctly, i.e. they form correct bracket sequence. If a letter lays inside several tags, its case is defined by the most inner tag. sample input | sample output |
Thi<UP>sIs<DOWN>EaSY</DOWN>Pr<UP>O</UP>ble</UP>m | ThiSISeasyPROBLEm |
| Name |
|---|


