m:-readln([S],_,_," 0468+-#",!),sub_atom(S,0,1,_,A),(sub_atom(S,1,_,1,B),sub_atom(S,_,1,0,C),format("~a~a~a ",[C,B,A]),!;writeln(S)),m.