python loop and flag
\nclass Foo:\n    def __init__(self):\n        self.f = True\n        self.s = False\n        self.t = False\n\n\n    def first(self, printFirst: \'Callable[[],
```\nclass Foo:\n    def __init__(self):\n        self.f = True\n        self.s = False\n        self.t = False\n\n\n    def first(self, printFirst: \'Callable[[], None]\') -> None:\n        \n        # printFirst() outputs "first". Do not change or remove this line.\n        printFirst()\n        self.s = True\n\n\n    def second(self, printSecond: \'Callable[[], None]\') -> None:\n        \n        # printSecond() outputs "second". Do not change or remove this line.\n        while 1:\n          if self.s:\n            break\n        printSecond()\n        self.t = True\n\n\n    def third(self, printThird: \'Callable[[], None]\') -> None:\n        \n        # printThird() outputs "third". Do not change or remove this line.\n        while 1:\n          if self.t:\n            break\n        printThird()\n```
[]