URI Online Judge | 3070
# HyperspaceTM Highways

**Timelimit: 1**

By Serbia

In an unspecified solar system, there are **N** planets. A space government company has recently hired space contractors to build **M** bidirectional Hyperspace^{TM} highways, each connecting two different planets. The primary objective, which was to make sure that every planet can be reached from any other planet taking only Hyperspace^{TM} highways, has been completely fulfilled. Unfortunately, lots of space contractors had friends and cousins in the Space Board of Directors of the company, so the company decided to do much more than just connecting all planets.

In order to make spending enormous amounts of space money for Hyperspace^{TM} highways

look necessary, they decided to enforce a strict rule on the Hyperspace^{TM} highway network: whenever there is a way to travel through some planets and return to the starting point without traveling through any planet twice, every pair of planets on the itinerary should be directly connected by a Hyperspace^{TM} highway. In other words, the set of planets in every simple cycle induces a complete subgraph.

You are designing a Hyperspace^{TM} navigational app, and the key technical problem you are facing is finding the minimal number of Hyperspace^{TM} highways one needs to use to travel from planet **A** to planet **B**. As this problem is too easy for Bubble Cup, here is a harder task: your program needs to do it for **Q** pairs of planets.

The first line contains three positive integers **N **(1 ≤ **N **≤ 100 000), **M** (1 ≤ **M** ≤ 500 000) and **Q **(1 ≤** Q **≤ 200 000), denoting the number of planets, the number of Hyperspace^{TM} highways, and the number of queries, respectively.

Each of the following **M** lines contains a highway: highway i is given by two integers **u _{i}** and

Each of the following **Q** lines contains a query: query **j** is given by two integers **a*** _{j}* and

Output **Q** lines: the **j-th** line of output should contain the minimal number of Hyperspace^{TM}

highways one needs to take to travel from planet **a_{j}** to planet

Input Samples | Output Samples |

5 7 2 |
1 |

8 11 4 |
2 2 3 3 |