using C=System.Console;class M{static void Main(){for(int i=-2,j=C.ReadLine().Length/2-1,k=j<3?98:j<4?998:99998;i++