Time limit: 0.05s
Memory limit: 64MB
Input:
Output:
The following functions are defined:
- : reverses the string ;
- : rearranges the letters of the string in alphabetical order;
- : concatenates all the vowels in the word to the vowels in the word , in order;
- : extracts the substring located between positions and in the word by stepping positions at a time starting from position , .
Examples:
- : "olleh";
- : "ehllo";
- : "eoo";
- : "eor";
Task
Evaluate an expression composed of calls to these functions.
Input data
The first line of the input contains the expression to be evaluated.
Output data
The first line contains the result of the evaluation, enclosed in double quotes .
Constraints and clarifications
- ;
- , for any word ;
- In the tests, all words are enclosed in double quotes .
Example 1
stdin
"helloworld"
stdout
"helloworld"
Explanation
There are no operations to perform.
Example 2
stdin
reverse(order(concat("hello",substr("world",1,5,1))))
stdout
"ooe"
Explanation
: "world"
: "eoo"
: "eoo"
: "ooe"