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

You have n tubes, the i-th of which has inner radius r_i and outer radius R_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 a fits inside tube b is R_a \leq r_b.

Input

The first line contains a single integer n: the number of tubes.
The second line contains n integers r_1,\ r_2,\ \dots,\ r_n: the inner radii.
The third line contains n integers R_1,\ R_2,\ \dots,\ R_n: the outer radii.

Output

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

Constraints

  • 1 \leq n \leq 10^5
  • 1 \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