-module(s). -export([m/0]). m()->f(io:get_line('')). f("")->0;f(S)->f(tl(S)),io:format(S++lists:reverse(S)++" ").