### Problem Statement: Bomb Removal

**Description**

There are \(N\) fuse cords and bombs, each with one bomb, on a grid of height \(H\) and width \(W\). Each fuse cord and bomb are placed on a path consisting of \(L_i\) squares, with the \(j\)-th square of the path \((p_{x_{ij}}, p_{y_{ij}})\). Each bomb is located at the last square \((p_{x_{iL_i}}, p_{y_{iL_i}})\).

**Input**

1. An integer \(H\) (1 ≤ \(H\) ≤ 1000), representing the height of the grid.
2. An integer \(W\) (1 ≤ \(W\) ≤ 1000), representing the width of the grid.
3. An integer \(N\) (1 ≤ \(N\) ≤ 100), representing the number of fuse cords and bombs.
4. For each fuse cord, an integer \(L_i\) (1 ≤ \(L_i\) ≤ 100), representing the length of the fuse cord's path.
5. For each fuse cord, a list of \(L_i\) pairs of integers \((p_{x_{ij}}, p_{y_{ij}})\) (1 ≤ \(p_{x_{ij}} ≤ H\), 1 ≤ \(p_{y_{ij}} ≤ W\)), representing the coordinates of the squares on the path.

**Output**

For each bomb, print the coordinates \((p_{x_{iL_i}}, p_{y_{iL_i}})\) where the bomb is located.

**Examples**

_Input_
```
5
5
3
4
1 1
2 1
3 1
4 1
2
2 2
2 3
1
5 5
```

_Output_
```
4 1
2 3
5 5
```

**Explanation**

In the first example, there is a grid of size 5x5 with 3 fuse cords and bombs. The first fuse cord has a path length of 4 with coordinates (1,1), (2,1), (3,1), and (4,1). The bomb is located at (4,1). Similarly, the second fuse cord has a path length of 2 with coordinates (2,2) and (2,3), placing the bomb at (2,3). The third fuse cord has a path length of 1 with coordinates (5,5), placing the bomb at (5,5).

**Note**

This problem tests the ability to parse and utilize multidimensional coordinate data.

Types: H: int, W: int, N: int, L: List[int], path: List[List[Tuple[int, int]]]
Ranges: 1 ≤ H ≤ 1000, 1 ≤ W ≤ 1000, 1 ≤ N ≤ 100, 1 ≤ L[i] ≤ 100, 1 ≤ p_{x_{ij}} ≤ H, 1 ≤ p_{y_{ij}} ≤ W
Addtl Info: None