class A:
    def __init__(self, txt: str):
        self.o: H = None
        self.u: F = None
        self.w: H = None
        self.z: H = None
        self.t: B = None
        self.v: B = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.y: E = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.w: E = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.q: B = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.v: H = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.w: E = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.r: F = None
        self.w: E = None
        self.z: H = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.z: D = None
        self.r: C = None
        self.s: D = None
        self.txt = txt

h = A("h")
i = B("i")
j = C("j")
l = D("l")
b = E("b")
m = F("m")
c = G("c")
e = H("e")

h.o = e
h.w = e
h.z = e
h.u = m
h.t = i
h.v = i
i.y = b
j.w = b
l.q = i
b.v = e
m.w = b
c.r = m
c.w = b
c.z = e
e.z = l
e.s = l
e.r = j
assert l.q.y.v.r.w.v.txt == "
class A:
    def __init__(self, txt: str):
        self.o: H = None
        self.u: F = None
        self.w: H = None
        self.z: H = None
        self.t: B = None
        self.v: B = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.y: E = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.w: E = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.q: B = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.v: H = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.w: E = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.r: F = None
        self.w: E = None
        self.z: H = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.z: D = None
        self.r: C = None
        self.s: D = None
        self.txt = txt

h = A("h")
i = B("i")
j = C("j")
l = D("l")
b = E("b")
m = F("m")
c = G("c")
e = H("e")

h.o = e
h.w = e
h.z = e
h.u = m
h.t = i
h.v = i
i.y = b
j.w = b
l.q = i
b.v = e
m.w = b
c.r = m
c.w = b
c.z = e
e.z = l
e.s = l
e.r = j
assert l.q.y.v.r.w.v.txt == "e"