PROGRAMMING:Explanation of demon language
There is a devil who always speaks in his own very concise and abstract language, which no one can understand. But his language can gradually explain that adults can understand language, because his language is gradually abstracted from human language by the following two forms of rules:
one α->β one β 2... β n
2. ( θδ one δ 2... δ n)-> θδ n θδ n-1... θδ one θ
In these two forms, from left to right, it means interpretation; Right to left represents abstraction. Try to write a demon explanation system to explain his words to people who can understand them.
[basic requirements]
It is realized by the following two specific rules and the above rule form (2). Let capital letters represent the vocabulary of demon language; Small writing
Mother refers to the vocabulary of human language; Greek letters (a, B1, s, Y1, etc.) denote variables that can be replaced with uppercase or lowercase letters.
The devil language can contain human words.
1. B->tAdA
2. A->sae
###Input format:
Enter a string of lowercase sub letters enclosed in parentheses. For example: B (einxgz) B #.
###Output format:
According to the logic of devil language translation, output the answer. For example: tsaedsaeezexenietsaedsae.
###Input example:
Here is a set of inputs. For example:
```in
B(einxgz)B#
```
###Output example:
The corresponding output is given here. For example:
```out
tsaedsaeezegexeneietsaedsae
```
answer:If there is no answer, please comment
one α->β one β 2... β n
2. ( θδ one δ 2... δ n)-> θδ n θδ n-1... θδ one θ
In these two forms, from left to right, it means interpretation; Right to left represents abstraction. Try to write a demon explanation system to explain his words to people who can understand them.
[basic requirements]
It is realized by the following two specific rules and the above rule form (2). Let capital letters represent the vocabulary of demon language; Small writing
Mother refers to the vocabulary of human language; Greek letters (a, B1, s, Y1, etc.) denote variables that can be replaced with uppercase or lowercase letters.
The devil language can contain human words.
1. B->tAdA
2. A->sae
###Input format:
Enter a string of lowercase sub letters enclosed in parentheses. For example: B (einxgz) B #.
###Output format:
According to the logic of devil language translation, output the answer. For example: tsaedsaeezexenietsaedsae.
###Input example:
Here is a set of inputs. For example:
```in
B(einxgz)B#
```
###Output example:
The corresponding output is given here. For example:
```out
tsaedsaeezegexeneietsaedsae
```
answer:If there is no answer, please comment