-module(s). -export([m/0]). m()->f(io:get_line('')). f("")->0;f(S)->f(tl(S)),[io:format(string:substr(S,1,A)++" ")||A<-lists:seq(1,length(S))].