Shipping costs for P-adic Deterministic and Random Dynamics