We have a building with floors labeled 0 through 4 (n0 to n4). Each floor nX is considered “above” any floor nY where X < Y, meaning n0 < n1 < n2 < n3 < n4 in ascending order.

There are four elevators:
- fast0, a fast elevator currently at floor 0 (n0). It has 0 passengers right now and can hold up to 2 passengers. It can reach all floors from 0 to 4 (n0 to n4).
- fast1, another fast elevator, also at floor 0 (n0). It holds 0 passengers at the moment and can also hold up to 2 passengers. It can serve all floors from 0 to 4 (n0 to n4).
- slow0-0, a slow elevator currently at floor 0 (n0). It has 0 passengers and can hold up to 1 passenger. It can reach floors 0, 1, and 2 (n0 to n2).
- slow1-0, another slow elevator, currently at floor 2 (n2). It holds 0 passengers and can hold up to 1 passenger. It can serve floors 2, 3, and 4 (n2 to n4).

We have six passengers on specific floors:
- p0 is on floor 1 (n1).
- p1 is on floor 3 (n3).
- p2 is on floor 0 (n0).
- p3 is on floor 0 (n0).
- p4 is on floor 3 (n3).
- p5 is on floor 1 (n1).

Travel costs are as follows:
- Using a slow elevator costs 6 units to move between adjacent floors (e.g., n0 to n1 or n1 to n2). Longer jumps (e.g., n0 to n2) cost 7 units.
- Using a fast elevator costs 4 units to move between adjacent floors (e.g., n0 to n1 or n1 to n2). Longer jumps (e.g., n0 to n3) cost 10 units, and moving from n0 to n4 costs 13 units.

The total cost starts at 0.