class A:
    def __init__(self, txt: str):
        self.y: H = None
        self.p: B = None
        self.v: H = None
        self.z: B = None
        self.o: H = None
        self.r: B = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.p: C = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.o: H = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.r: H = None
        self.v: B = None
        self.u: H = None
        self.t: G = None
        self.txt = txt

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

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

class G:
    def __init__(self, txt: str):
        self.r: A = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.s: A = None
        self.z: D = None
        self.x: C = None
        self.o: F = None
        self.u: C = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.p: C = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.o: H = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.r: H = None
        self.v: B = None
        self.u: H = None
        self.t: G = None
        self.txt = txt

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

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

class G:
    def __init__(self, txt: str):
        self.r: A = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.s: A = None
        self.z: D = None
        self.x: C = None
        self.o: F = None
        self.u: C = None
        self.txt = txt

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

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