Ana, a great tourist, decided to take advantage of the border between Foz do Iguaçu and Ciudad Del Este and go shopping in Paraguay. She has a list of $$$N$$$ products she would like to bring back. However, when crossing the Friendship Bridge, there is a risk of being stopped by the Federal Revenue Service. To minimize this risk, Ana imposes two restrictions on what she will bring with her:
The first line of the input contains three integers: $$$N$$$ ($$$2 \leq N \leq 20$$$), $$$M$$$ ($$$0 \leq M \leq N(N-1)/2$$$), and $$$K$$$ ($$$1 \leq K \leq 10^{18}$$$), the number of products, the number of forbidden pairs, and the maximum limit.
The second line of input contains $$$N$$$ numbers $$$a_1, a_2, ..., a_N$$$, the price of the $$$i$$$-th product ($$$1 \leq a_i \leq 10^{18}$$$).
The next $$$M$$$ lines are distinct and each contain a pair of numbers $$$i$$$ and $$$j$$$ ($$$1 \leq i \lt j \leq N)$$$, representing the indices of the products that have a higher risk of being stopped if taken together.
Output the number of product subsets that Ana can choose from that meet the constraints.
4 1 1001 2 3 41 2
12
4 1 81 2 3 41 2
11