class INT{}
class list{
A a = null;
listnext = new list();
void insert(A elem){
if(a = null){
a=elem;
}
else{
next.insert(elem);
}
}
void get(A elem){
System.out.println(elem);
next.get(elem);
}
}
class main extends list> {
list l = new list();
void main(){
lists= new list(), l = new list();
INT i = new INT();
}
}