|Unknown Language Round #2|
Two good friends were trying to make a new programming language called Perse-script.
The most important part of this language is strings. A string in Perse-script is put between characters "
So for example "Hello" is a string. But Hello is a variable name or a keyword, which are not considered in this problem.
Perse-script is function-based. So there are no operators in this language. For example for summing two numbers you have to write sum(a,b) and not a+b.
There are several functions for working on strings. These include:
You're going to manipulate the string part of Perse-script. Given a string expression, you should print its result. It is guaranteed that the expression contains only strings shown by characters " and the above functions.
Commands in Perse-script are case-insensitive. So to call substr function you can write SUBsTr(). But you can't print as the result "hElLo" instead of printing "Hello".
See the samples for more information.
A single line containing the correct expression. It is guaranteed that the total length of this expression does not exceed 103 and that all the integers used in it are less than or equal to 100 by absolute value. The given string is non-empty.
All strings in the input which are placed between "s consist of uppercase and lowercase Latin letters only.
Print in single line the resulting string. It is guaranteed that an answer exists and that the length of the answer does not exceed 104. It is guaranteed that the answer is non-empty.