Running Away


You are trying to run away from the police after stealing all of the MAPS prize money. The police begin at location 1 on day 0 and MUST move to an adjacent location at the end of each day. On day dd, how many locations are guaranteed to not have police?

Input

The first line contains integers nn, ee, dd: the number of locations, edges, and given day.

The next ee lines contains integers uu, vv, specifying that location uu and vv are adjacent.

Output

Output the number of locations which are guaranteed to not contain police.

Constraints

  • 1≤n,e≤1051 \le n,e \le 10^5
  • 1≤u,v≤n1 \le u,v \le n
  • 0≤d≤1090 \le d \le 10^9

Example 1

Input 1
10 12 3
1 2
2 3
3 4
4 5
5 6
6 7
7 8
8 9
9 10
7 7
4 6
3 8
Output 1
7

Example 2

Input 2
20 22 6
1 2
2 3
3 4
4 5
5 6
6 7
7 8
8 9
9 10
10 11
11 12
12 13
13 14
14 15
15 16
16 17
17 18
18 19
19 20
17 15
9 1
15 19
Output 2
10

Comments0


No comments yet

Be the first to comment.

New comment


Log in to join the discussion.