• + 0 comments
    if __name__ == '__main__':
        l = []
        for _ in range(int(input())):
            cmd,args = (lambda a: [a[0],a[1:]])(input().split())
            if cmd=="print":
                print(l)
            else:
                exec(f"l.{cmd}({", ".join(args)})")