It is impossible to live without bridges, the planet is full of places where it is impossible to get over the bridge otherwise, but how else to overcome the water barrier, other methods will be too expensive. Therefore, in the game Bridge Sort you will be building bridges and this is not a line in the truest sense of the word. And a puzzle. Your task is to transport all the little men from the high-rise building to a square platform of exactly the same color. Connect the platforms with a line, drawing it from support to support. Bridge lines can intersect, but in the end you must cross the maximum number of inhabitants so that the yellow line on the scale crosses the finish line in Bridge Sort.