uses Robot;
begin
Task('if2');
Paint;
Up; if WallFromUp then Paint; Down;
Right; if WallFromRight then Paint; Left;
Down; if WallFromDown then Paint; Up;
Left; if WallFromLeft then Paint; Right;
end.
uses Robot;
begin
Task('if2');
Paint;
Up; if WallFromUp then Paint; Down;
Right; if WallFromRight then Paint; Left;
Down; if WallFromDown then Paint; Up;
Left; if WallFromLeft then Paint; Right;
end.