How to Solve Problems with Heads and Feet?

Let's solve the following problem:

 

Solve problems with heads and feet

* Problems with heads and feet can be found in the course Competitive Mathematics - Level 3