Jaś is setting up dominoes, but not in the traditional way; he plays by toppling one tile after another. His tiles all have different heights. He placed n dominoes in a row so that toppling any tile makes the next tile in the row topple as well. A tile topples the next one exactly when the height of the toppling tile is greater than the distance between them. Jaś wants to know the maximum number of unnecessary tiles he can remove from the row so that toppling the first tile still makes the last tile topple (through the intermediate tiles falling in turn). Jaś may not change the positions of the tiles.
The first line contains the number of tiles n (1≤n≤106). The second line contains n integers w1,w2,…,wn (1≤wi≤109), where wi is the height of the i-th tile in the row. The third line contains n−1 integers x1,x2,…,xn−1 (1≤xi≤109), where xi is the distance between the i-th and the (i+1)-th tile. In the initial arrangement each tile can topple its immediate neighbor, that is wi>xi for every i<n.
Print a single integer: the maximum number of tiles that can be removed from the row.