Your country can be represented by N cities connected using N−1 roads. There exists an edge between city (i, i+1) for all i from 1 to n−1.
You have to set up a connection for water supply. You set this in one city and water gets transported from it to other cities using road transport. Certain cities are blocked which means that water cannot pass through this city. Determine the maximum number of cities to which water can be supplied.
Input format
Output format
Print a single integer denoting the maximum cities to which water can be supplied.
Constraints
1≤N≤2×105
Mayor will choose city number 2 and supply water to cities 2, 1. (Note city 3 can also be selected , water is supplied to 3 and 4)