Shipping costs for The Hamlet problem