PROGRAMMING:Conversion from q-ary to t-ary
Given an integer Q (2 < = q < = 10), a non empty string, and another integer t (2 < = T < = 10), the program requires that all the characters corresponding to non-q-ary numbers in the string be filtered to form a new string, which has no sign. The q-ary number represented by the string is converted to the string output of t-ary number.
###Input format:
Enter an integer Q on the first line to represent the Q-base (2 < = q < = 10)
On the second line, enter a non empty string ending with carriage return.
In the third line, enter an integer t to represent the conversion to t-ary
###Output format:
Output converted t-ary digit string.
###Input example:
```in
ten
fifteen
two
```
###Output example:
```out
one thousand one hundred and eleven
```
answer:If there is no answer, please comment
###Input format:
Enter an integer Q on the first line to represent the Q-base (2 < = q < = 10)
On the second line, enter a non empty string ending with carriage return.
In the third line, enter an integer t to represent the conversion to t-ary
###Output format:
Output converted t-ary digit string.
###Input example:
```in
ten
fifteen
two
```
###Output example:
```out
one thousand one hundred and eleven
```
answer:If there is no answer, please comment