def parse(data):
    # TODO: your code here
    i = 0
    list = []
    for n in data:
        if n == "i" :
            i += 1
        elif n == "d" :
            i -= 1
        elif n == "s" :
            i *= i
        elif n == "o":
            list.append(i)
    return list



1b2984a740426f3c0a36ed99342364f6ebe1a81f
<mask token>

def parse(data):
    i = 0
    list = []
    for n in data:
        if n == 'i':
            i += 1
        elif n == 'd':
            i -= 1
        elif n == 's':
            i *= i
        elif n == 'o':
            list.append(i)
    return list

def parse(data):
    # TODO: your code here
    i = 0
    list = []
    for n in data:
        if n == "i" :
            i += 1
        elif n == "d" :
            i -= 1
        elif n == "s" :
            i *= i
        elif n == "o":
            list.append(i)
    return list


