- Time limit: 1.00 s
- Memory limit: 512 MB
You have tubes, the -th of which has inner radius and outer radius . 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 fits inside tube is .
Input
The first line contains a single integer : the number of tubes.
The second line contains integers : the inner radii.
The third line contains integers : the outer radii.
Output
Print one integer on the first line: The length of the longest sequence.
On the second line, print integers : The indices of the tubes in the sequence.
Constraints
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