import java.security.SecureRandom;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
public class Q232391296 {
public static void main(String[] args) {
List nums = new SecureRandom().ints(10, 100).limit(20).boxed().toList();
System.out.println(nums);
List result = new ArrayList<>();
for (int i = 1; i < nums.size(); i++) {
if (nums.get(i) > nums.get(i - 1)) {
result.add(nums.get(i));
}
}
Collections.sort(result);
System.out.println(result);
}
}