class LinkedList<T>{
    T t;
    public T get(){return t;}
    public void set (T t){
	this.t = t;
    }    
}

class Simple {
   boolean f(){
    return false;
   }
}

class Test{
    LinkedList y;
    LinkedList x;
    
    void f(){
       y.set(((Simple) y.get()).f() ? x.get() : x.get());
    }   
}
