import java.util.*;
class Solution {
public int[] solution(String s) {
int answer[] = new int[2];
Arrays.fill(answer,0);
while(!s.equals("1")){
String save = s;
s = s.replace("0","");
answer[1] += (save.length()-s.length());
int temp = s.length();
s = Integer.toBinaryString(temp);
answer[0]++;
}
return answer;
}
}