To interpret a positive integer very literally, write it in English words (without "and"), replace hyphens with spaces, replace each resulting word with its number value, and concatenate the results into a single number.
To write a positive integer more than 99 but less than 1000 in English words, prefix its last two digits written in English with [first digit in English]
hundred
with a trailing space.
To write a positive integer more than 999 but less than 1 million in English words, use the following syntax: [part before the last 3 digits in English]
thousand
[last 3 digits in English]
, all separated by spaces.
The task is to input a positive integer (less than 1 million) and output it, interpreted very literally. #Examples
Examples
1 -> 1 (one)
10 -> 10 (ten)
16 -> 16 (sixteen)
23 -> 203 (twenty three)
111 -> 110011 (one hundred eleven)
123 -> 1100203 (one hundred twenty three)
1234 -> 110002100304 (one thousand two hundred thirty four)
12345 -> 1210003100405 (twelve thousand three hundred forty five)
123456 -> 110020310004100506 (one hundred twenty three thousand four hundred fifty six)
1056 -> 11000506 (one thousand fifty six)
101101 -> 11001100011001 (one hundred one thousand one hundred one)
110110 -> 1100101000110010 (one hundred ten thousand one hundred ten)
Feel free to add more test cases if necessary.
This is tagged code-golf, so the shortest code wins.