class A:
    def __init__(self, txt: str):
        self.w: H = None
        self.s: C = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.w: A = None
        self.x: D = None
        self.o: H = None
        self.q: D = None
        self.y: D = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.r: C = None
        self.p: I = None
        self.w: G = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.q: D = None
        self.o: B = None
        self.z: C = None
        self.t: A = None
        self.u: E = None
        self.w: D = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.r: G = None
        self.o: B = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.x: D = None
        self.y: E = None
        self.v: B = None
        self.s: A = None
        self.q: A = None
        self.u: B = None
        self.p: D = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.w: A = None
        self.x: D = None
        self.o: H = None
        self.q: D = None
        self.y: D = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.r: C = None
        self.p: I = None
        self.w: G = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.q: D = None
        self.o: B = None
        self.z: C = None
        self.t: A = None
        self.u: E = None
        self.w: D = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.r: G = None
        self.o: B = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.x: D = None
        self.y: E = None
        self.v: B = None
        self.s: A = None
        self.q: A = None
        self.u: B = None
        self.p: D = None
        self.txt = txt

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

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