class A:
    def __init__(self, txt: str):
        self.w: D = None
        self.u: C = None
        self.v: I = None
        self.o: B = None
        self.p: E = None
        self.txt = txt

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

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

class D:
    def __init__(self, txt: str):
        self.p: F = None
        self.z: E = None
        self.w: C = None
        self.s: H = None
        self.o: I = None
        self.v: E = None
        self.r: F = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.v: B = None
        self.x: G = None
        self.w: H = None
        self.s: A = None
        self.p: D = None
        self.z: A = None
        self.r: G = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.t: C = None
        self.v: F = None
        self.p: C = None
        self.x: H = None
        self.r: C = None
        self.q: D = None
        self.y: D = None
        self.w: E = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.q: E = None
        self.o: C = None
        self.w: G = None
        self.r: E = None
        self.s: G = None
        self.t: F = None
        self.z: G = None
        self.v: E = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.z: E = None
        self.txt = txt

m = A("m")
b = B("b")
d = C("d")
f = D("f")
n = E("n")
l = F("l")
e = G("e")
a = H("a")
k = I("k")

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

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

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

class D:
    def __init__(self, txt: str):
        self.p: F = None
        self.z: E = None
        self.w: C = None
        self.s: H = None
        self.o: I = None
        self.v: E = None
        self.r: F = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.v: B = None
        self.x: G = None
        self.w: H = None
        self.s: A = None
        self.p: D = None
        self.z: A = None
        self.r: G = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.t: C = None
        self.v: F = None
        self.p: C = None
        self.x: H = None
        self.r: C = None
        self.q: D = None
        self.y: D = None
        self.w: E = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.q: E = None
        self.o: C = None
        self.w: G = None
        self.r: E = None
        self.s: G = None
        self.t: F = None
        self.z: G = None
        self.v: E = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.z: E = None
        self.txt = txt

m = A("m")
b = B("b")
d = C("d")
f = D("f")
n = E("n")
l = F("l")
e = G("e")
a = H("a")
k = I("k")

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