Solved 3d task from checkio