You will be given a definition of a task first, then an example. Follow the example to solve a new instance of the task.
In this task you will be given a string that only contains single digit numbers spelled out. The input string will not contain spaces between the different numbers. Your task is to return the number that the string spells out. The string will spell out each digit of the number for example '1726' will be 'oneseventwosix' instead of 'one thousand seven hundred six'.

twotwoonesixzeronine
Solution: 221609
Why? The string is properly converted into a number based on the spelling of each digit. The string started with 'twotwo' therefore the number also started with '22'. This is a good example.

New input: eightsixsixtwofourone
Solution:
866241
You will be given a definition of a task first, then an example. Follow the example to solve a new instance of the task.
In this task you will be given a string that only contains single digit numbers spelled out. The input string will not contain spaces between the different numbers. Your task is to return the number that the string spells out. The string will spell out each digit of the number for example '1726' will be 'oneseventwosix' instead of 'one thousand seven hundred six'.

twotwoonesixzeronine
Solution: 221609
Why? The string is properly converted into a number based on the spelling of each digit. The string started with 'twotwo' therefore the number also started with '22'. This is a good example.

New input: eightsixsixtwofourone
Solution:
user
866241
assistant
You will be given a definition of a task first, then an example. Follow the example to solve a new instance of the task.
In this task you will be given a string that only contains single digit numbers spelled out. The input string will not contain spaces between the different numbers. Your task is to return the number that the string spells out. The string will spell out each digit of the number for example '1726' will be 'oneseventwosix' instead of 'one thousand seven hundred six'.

twotwoonesixzeronine
Solution: 221609
Why? The string is properly converted into a number based on the spelling of each digit. The string started with 'twotwo' therefore the number also started with '22'. This is a good example.

New input: eightsixsixtwofourone
Solution:
866241