def stack():
	for item in len(l,0):
        if (item=e):
            l.push()
        else:
		   continue	
		




                        
t=int(input('Size=='))
l=[0::-1] 
for y in range(t):
    e=input('element in stack=')
    l.append(e)
stack(l)
