Study
For the first time in the history of Russian cosmonautics, an anthropomorphic robot named Fedor (FEDOR) went into orbit. He has already said the most important word: "Let's go!" 

In general, the main goal & nbsp; Fedora - to replace a person in places of increased risk - for example, in rescue operations and in space. A person sits in a safe place and sends commands to the robot, thereby he can control it, forcing it to perform various tasks. Agree, it is very convenient!
And this is just the beginning...

The future, no doubt, belongs to such robots! Do you want to learn how to control robots, write various programs and become a real programmer? Then you are on the right track! 
We have created the same robot for you, and we will teach you how to control it!


Let's get acquainted!
This is Robot Silver.

Gradually, from task to task, you will learn how to manage it and together with it you will solve various tasks of exploring various planets.

Let's go!

Now Silver is at the training base and is working out the commands.
Let's explore what the robot knows about its environment. 
The robot knows that the entire study area is divided into squares. It cannot go beyond this area, otherwise the mission will fail. 

He also knows that there is a base on the field. The square with the base is indicated in green with a yellow border. If the Robot has completed the task, it must return to the base and the mission will be considered successful.

Let's practice driving Silver.
Silver can execute the command right, upon receiving which he moves one square to the right, if possible.

Robot Silver, like any robot or computer, obeys instructions blindly and literally. He cannot think for himself, so all actions and commands must be expressed unambiguously. 
For example, if you give the Robot the command to the right, then it will not understand it! 
Be careful!

Up
Give the  up command to the robot to move it to the adjacent cell above the robot.

Left
Give the  left command to the robot to move it to the adjacent cell to the left of the robot.

Down
Silver knows the  down command, and when given it, he moves one square down if possible.

Colorize

Exploring different planets, the robot can mark different areas. In these areas, scientists will continue to try to grow something. The robot marks the required area with the  paint over command. In this case, the cell on the field will change its color to green.

The cells that the robot must paint over on the field look like flashing squares.

The robot must paint over all the required cells on the field before returning to the base! Otherwise, the mission will fail!

Valuable specimens
Scientists, studying the planet remotely, found that in some places there are valuable specimens that need to be delivered to the base. The robot collects each copy by passing through the cell marked with a yellow coin.



If there are yellow coins on the field, then the robot must bring everything to the base!

First training task
Your studies are over. You have entered the training stage.
Before the first real task, you and Silver need to train a lot!

Good luck!