CSES - Aalto Competitive Programming 2024 - wk12 - Wed - Concentric Tubes
  • Time limit: 1.00 s
  • Memory limit: 512 MB

You have nn tubes, the ii-th of which has inner radius rir_i and outer radius RiR_i. Find the maximum number of tubes you can place within one another. That is: find the longest sequence of tubes such that each tube in the sequence fits inside all of the previous tubes. Tube aa fits inside tube bb is RarbR_a \leq r_b.

Input

The first line contains a single integer nn: the number of tubes.
The second line contains nn integers r1, r2, , rnr_1,\ r_2,\ \dots,\ r_n: the inner radii.
The third line contains nn integers R1, R2, , RnR_1,\ R_2,\ \dots,\ R_n: the outer radii.

Output

Print one integer kk on the first line: The length of the longest sequence.
On the second line, print kk integers ans1, ans2, , anskans_1,\ ans_2,\ \dots,\ ans_k: The indices of the tubes in the sequence.

Constraints

  • 1n1051 \leq n \leq 10^5
  • 1ri<Ri1091 \leq r_i < R_i \leq 10^9

Example

Input:

10
3 2 1 7 5 3 8 2 5 2 
6 4 2 10 6 9 10 10 9 10

Output:

4
3 2 5 4