Jennifer is travelling to a nation with $$$N$$$ cities numbered from $$$1$$$ to $$$N$$$. There are $$$M$$$ bidirectional roads in the nation. The $$$i$$$-th road connects cities $$$A_i$$$ and $$$B_i$$$, Jennifer can travel from city $$$A_i$$$ to city $$$B_i$$$ and vice versa through the road, without paying any cost. When Jennifer passes the road for the first time (no matter which direction), she can pick up $$$C_i$$$ coins that lie on the road.
Additionally, there are $$$K$$$ pairs of bidirectional portals, the $$$i$$$-th pair connects city $$$D_i$$$ and $$$E_i$$$. Once Jennifer pays the cost of $$$P_i$$$ coins, the pair of portals is unlocked and Jennifer can travel from city $$$D_i$$$ to $$$E_i$$$ and vice versa for an unlimited number of times.
As Jennifer is a coin master who loves collecting coins, help her find out the maximum number of coins she can get at the end of her trip if she starts with $$$0$$$ coins and starts and ends in a city of her own choice.
The first line contains 3 integers: $$$N$$$ $$$(1 \leq N \leq 2\times 10^5)$$$, $$$M$$$ $$$(0 \leq M \leq 5\times 10^5)$$$, and $$$K$$$ $$$(0 \leq K \leq 16)$$$.
The next $$$M$$$ lines each describe a road. The $$$i$$$-th line contains 3 integers: $$$A_i$$$, $$$B_i$$$ $$$(1 \leq A_i \lt B_i \leq N)$$$, and $$$C_i$$$ $$$(1 \leq C_i \leq 10^9)$$$, denoting the road connects city $$$A_i$$$ and $$$B_i$$$ with $$$C_i$$$ collectible coins.
The last $$$K$$$ lines each describe a pair of portals. The $$$i$$$-th line contains 3 integers: $$$D_i$$$, $$$E_i$$$ $$$(1 \leq D_i \lt E_i \leq N)$$$, and $$$P_i$$$ $$$(1 \leq P_i \leq 10^9)$$$, denoting the pair of portals connects city $$$D_i$$$ and $$$E_i$$$ and requires $$$P_i$$$ coins to unlock.
Note that there are no 2 roads or 2 pairs of portals that connect the same pair of cities, i.e. $$$(A_i, B_i) \neq (A_j, B_j)$$$ for $$$1\leq i \lt j \leq M$$$, and $$$(D_i, E_i) \neq (D_j, E_j)$$$ for $$$1\leq i \lt j \leq K$$$.
The only line in the output contains the maximum number of coins Jennifer can get at the end of her trip.
6 4 11 2 52 3 13 4 25 6 63 6 4
10
8 4 11 2 24 5 35 6 57 8 66 8 4
10
For the first sample test, to obtain $$$10$$$ coins at the end of her trip, Jennifer may do the following:
| Name |
|---|


