R-05. One-way roads were built between settlements A, B, C, D, E, F, Z. The table shows the length of each road. The absence of a number in the table means that there is no direct road between points. For example, from A to B there is a road of length