0 \ do \ delete(s,pos(' \ \ ',s),1); \\
_ \ writeln(s); \\
_ \ readln(); \\
_end." alt="_var \ s:string; \\
_begin \\
_ \ readln(s); \\
_ \ while \ s[1]=' \ ' \ do \ delete(s,1,1); \\
_ \ while \ s[length(s)]=' \ ' \ do \ delete(s,length(s),1); \\
_ \ while \ pos(' \ \ ',s)>0 \ do \ delete(s,pos(' \ \ ',s),1); \\
_ \ writeln(s); \\
_ \ readln(); \\
_end." align="absmiddle" class="latex-formula">