King Arthur has summoned his knights for an urgent military council. In his realm, there are defensive fortresses arranged in a circular pattern, renowned for their impregnability. Some fortresses are nested within others, offering additional protection. When knights receive Arthur's orders, they travel from their estates with their guards. If a knight's journey takes him from outside a fortress to inside, or vice versa, he must pay a toll at the gate. Each fortress sets its toll per person, so the knight must pay for himself and his guards.
Arthur aims to select a meeting location that minimizes the knights' total expenses, as these costs will be reimbursed from the state treasury. The meeting place can be anywhere on his lands, except on the boundaries of the fortresses. Additionally, Arthur can reduce expenses by waiving the toll in up to fortresses of his choice. For his own journey from Camelot to the meeting place, the King incurs no expenses, and all knights will always choose the least costly route.
Your task is to write a program that, given the map of Arthur's lands, the toll amounts for each fortress, the number of guards with each knight, and the number of fortresses where the toll can be waived, determines the minimum amount of money needed to hold the council. The map is represented as a plane with circles indicating fortresses and points indicating knights' estates.
The first line contains three integers , , and (2 \le N \le 35000, 1 \le M \le 35000, 0 \le K \le N), where is the number of fortresses, is the number of knights summoned, and is the number of fortresses where Arthur can cancel the toll. The next lines describe the fortresses, each containing four integers , , , (-10^6 \le x \le 10^6, -10^6 \le y \le 10^6, 1 \le R \le 2 \cdot 10^6, 1 \le C \le 10^5), where are the coordinates of the fortress center, is the radius, and is the toll per person. The next lines provide information about the knights, each containing three integers , , (-10^6 \le x \le 10^6, -10^6 \le y \le 10^6, 1 \le L \le 10^5), where are the coordinates of the knight's estate, and is the number of guards traveling with the knight, including himself. It is guaranteed that:
No two circles representing fortresses overlap.
No two points representing knights' estates coincide or lie on the circles.
Output a single integer - the minimum amount of money King Arthur needs to spend to gather the knights.

Example 1