MinimumScalarProduct pb - code jam