Problem A. Minimum Scalar Product