import java.util.*;
//-----------------------------------------------------------------------------
// Queue class that extends from LinkedList
// overrides and de-activates some of the methods
//-----------------------------------------------------------------------------
class Queue<E>  extends LinkedList<E>                   //Notice use of generic
{
    public void push(E item)                            //receives a generic
    {
        super.addLast(item);                            //Java has a push( ) --> addFirst( )
    }                                                   //except, I want to add to the end

    public E pop()                                      //not needed
    {
        return super.removeFirst();                     //Java has a pop( ) --> removeFirst( )
    }                                                   //no need to overwrite

    public void add(int i, E item) {}                   //disable add(int i, E item)
    public void addFirst(E item) {}                     //disable addFirst(E item)
}