class Pila():
    
 def __init__(self, size):
     self.lista = []
     self.tope = 0
     self.size = size
     
def empty(self):
      if self.tope == 0:
          return True
      else:
          return False

def push(self, dato):
    if self.tope < self.size:
        self.lista += [dato]
        self.tope += 1
    else:
        prin("La pila está llena")
def pop(self):
    if self.empty():
        print("la pila está vacia")
    else:
        self.tope -=1
        self.lista = [self.lista[x] for x in range(self.tope)]
def show(self):
    for i in range(self.tope):
        print("[%d] => %d"%(i,self.lista[i]))
def Size(self):
    return self.tope
def Top(self):
    return self.lista[-1]                                


097a7beba60b9573fd69f7d3b4c5cc79a03077b7
class Pila:

    def __init__(self, size):
        self.lista = []
        self.tope = 0
        self.size = size


def empty(self):
    if self.tope == 0:
        return True
    else:
        return False


def push(self, dato):
    if self.tope < self.size:
        self.lista += [dato]
        self.tope += 1
    else:
        prin('La pila está llena')


<mask token>


def Top(self):
    return self.lista[-1]

class Pila:

    def __init__(self, size):
        self.lista = []
        self.tope = 0
        self.size = size


def empty(self):
    if self.tope == 0:
        return True
    else:
        return False


def push(self, dato):
    if self.tope < self.size:
        self.lista += [dato]
        self.tope += 1
    else:
        prin('La pila está llena')


def pop(self):
    if self.empty():
        print('la pila está vacia')
    else:
        self.tope -= 1
        self.lista = [self.lista[x] for x in range(self.tope)]


<mask token>


def Top(self):
    return self.lista[-1]

class Pila:

    def __init__(self, size):
        self.lista = []
        self.tope = 0
        self.size = size


def empty(self):
    if self.tope == 0:
        return True
    else:
        return False


def push(self, dato):
    if self.tope < self.size:
        self.lista += [dato]
        self.tope += 1
    else:
        prin('La pila está llena')


def pop(self):
    if self.empty():
        print('la pila está vacia')
    else:
        self.tope -= 1
        self.lista = [self.lista[x] for x in range(self.tope)]


<mask token>


def Size(self):
    return self.tope


def Top(self):
    return self.lista[-1]

class Pila:

    def __init__(self, size):
        self.lista = []
        self.tope = 0
        self.size = size


def empty(self):
    if self.tope == 0:
        return True
    else:
        return False


def push(self, dato):
    if self.tope < self.size:
        self.lista += [dato]
        self.tope += 1
    else:
        prin('La pila está llena')


def pop(self):
    if self.empty():
        print('la pila está vacia')
    else:
        self.tope -= 1
        self.lista = [self.lista[x] for x in range(self.tope)]


def show(self):
    for i in range(self.tope):
        print('[%d] => %d' % (i, self.lista[i]))


def Size(self):
    return self.tope


def Top(self):
    return self.lista[-1]

class Pila():
    
 def __init__(self, size):
     self.lista = []
     self.tope = 0
     self.size = size
     
def empty(self):
      if self.tope == 0:
          return True
      else:
          return False

def push(self, dato):
    if self.tope < self.size:
        self.lista += [dato]
        self.tope += 1
    else:
        prin("La pila está llena")
def pop(self):
    if self.empty():
        print("la pila está vacia")
    else:
        self.tope -=1
        self.lista = [self.lista[x] for x in range(self.tope)]
def show(self):
    for i in range(self.tope):
        print("[%d] => %d"%(i,self.lista[i]))
def Size(self):
    return self.tope
def Top(self):
    return self.lista[-1]                                

