A relay network has n towers, numbered 1 to n, and m two-way wires. A message starts at a source tower s and can travel through at most k wires total (each wire crossed counts as one hop).
Count how many DISTINCT towers can receive the message, counting the source tower itself (which receives it with zero hops).
Input format
Line 1: two integers n and m — number of towers (1-indexed) and number of wires.
Next m lines: two integers u v — an undirected wire between tower u and tower v.
Last line: two integers s k — the source tower and the maximum number of hops allowed.
Output format
A single integer: the number of towers reachable from s within k hops (inclusive).
Constraints
- 1 ≤ n ≤ 40
- 0 ≤ m ≤ 200
- 1 ≤ u, v, s ≤ n
- 0 ≤ k ≤ 40