Волхов Михаил 2538

1. It works
2. It passes all the tests
3. ???
4. GUI is ok too.