| f | class ExceptionTree: | f | class ExceptionTree: | 
             |  |  |  | 
             |     def __init__(self): |  |     def __init__(self): | 
            | n |         self.exceptions = {1: type('Exception-1', (Exception,), {'n': 1} | n |         self.exceptions = {1: type('Exception1', (Exception,), {'n': 1}) | 
             | )} |  | } | 
             |  |  |  | 
             |     def __call__(self, n): |  |     def __call__(self, n): | 
             |         if n not in self.exceptions: |  |         if n not in self.exceptions: | 
            | t |             parent_index = n // 2 | t |             parent = n // 2 | 
             |             if parent_index not in self.exceptions: |  |             if parent not in self.exceptions: | 
             |                 self(parent_index) |  |                 self(parent) | 
             |             self.exceptions[n] = type(f'Exception-{n}', (self.exceptions |  |             self.exceptions[n] = type(f'Exception{n}', (self.exceptions[ | 
             | [parent_index],), {'n': n}) |  | parent],), {'n': n}) | 
             |         return self.exceptions[n] |  |         return self.exceptions[n] |