class Solution {
public int solution(String s) {
int answer = 0;
String[] alp = {"one", "two", "zero", "three", "four", "five", "six", "seven",
"eight" , "nine"};
int[] num = {1,2,0,3,4,5,6,7,8,9};
for(int i=0; i<10; i++){
if(s.contains(alp[i])){
s = s.replace(alp[i], ""+num[i]);
}
}
answer = Integer.parseInt(s);
return answer;
}
}