#include <iostream>
#include "doubly_linked_list.h"
int main() {
DoublyLinkedList<int> A;
A.insert(0, 1);
A.remove(0);
A.insert(0, 2);
A.insert(1, 5);
A.insert(2, 6);
DoublyLinkedList<int> B;
B.insert(0, 10);
B = A;
B.insert(0,9);
DoublyLinkedList<int> C(B);
B.insert(2,8);
C.insert(0,10);
C.remove(0);
C.remove(2);
A.print();
B.print();
C.print();
std::cout << C[2] << "\n";
}