Very interesting homework

There some task, the seven is very cool, we use some algorithms for it