use Robot

alg
begin
right
down
left
up
print radiation, " ", temperature, nl
if wall at bottom then end if
if wall at right then end if
if wall at top then end if
if wall at left then end if

if free at top then end  if
if free at right then end_if
if free at bottom then end if
if free at left then end  if

paint
assert is painted
assert not is clear
end
