class A:
    def __init__(self, txt: str):
        self.w: B = None
        self.y: E = None
        self.x: C = None
        self.o: B = None
        self.z: G = None
        self.v: D = None
        self.txt = txt

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

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

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

class E:
    def __init__(self, txt: str):
        self.y: A = None
        self.r: D = None
        self.v: H = None
        self.w: D = None
        self.o: C = None
        self.x: B = None
        self.t: D = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.v: C = None
        self.txt = txt

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

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

l = A("l")
m = B("m")
g = C("g")
d = D("d")
n = E("n")
b = F("b")
k = G("k")
c = H("c")
e = H("e")
i = C("i")

l.w = m
l.o = m
l.y = n
l.x = g
l.z = k
l.v = d
m.u = d
m.q = n
g.x = l
g.u = m
g.s = b
g.p = d
g.z = n
d.s = i
n.y = l
n.r = d
n.w = d
n.t = d
n.v = c
n.o = i
n.x = m
b.v = i
k.v = n
c.u = i
e.u = g
i.x = l
i.u = m
i.s = b
i.p = d
i.z = n
assert c.u.s.v.x.z.v.x.q.y.txt == "
class A:
    def __init__(self, txt: str):
        self.w: B = None
        self.y: E = None
        self.x: C = None
        self.o: B = None
        self.z: G = None
        self.v: D = None
        self.txt = txt

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

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

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

class E:
    def __init__(self, txt: str):
        self.y: A = None
        self.r: D = None
        self.v: H = None
        self.w: D = None
        self.o: C = None
        self.x: B = None
        self.t: D = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.v: C = None
        self.txt = txt

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

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

l = A("l")
m = B("m")
g = C("g")
d = D("d")
n = E("n")
b = F("b")
k = G("k")
c = H("c")
e = H("e")
i = C("i")

l.w = m
l.o = m
l.y = n
l.x = g
l.z = k
l.v = d
m.u = d
m.q = n
g.x = l
g.u = m
g.s = b
g.p = d
g.z = n
d.s = i
n.y = l
n.r = d
n.w = d
n.t = d
n.v = c
n.o = i
n.x = m
b.v = i
k.v = n
c.u = i
e.u = g
i.x = l
i.u = m
i.s = b
i.p = d
i.z = n
assert c.u.s.v.x.z.v.x.q.y.txt == "l"