UVA Problem ID: 762 (We Ship Cheap)