#include "List.h"
std::ostream&operator<<(std::ostream&out,Element&rhs){
if (rhs.list!=nullptr){
out<<*rhs.list;
} else {
out<<rhs.number;
}
return out;