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

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

class C:
    def __init__(self, txt: str):
        self.z: A = None
        self.o: F = None
        self.t: B = None
        self.r: H = None
        self.w: D = None
        self.s: A = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.q: A = None
        self.z: I = None
        self.p: B = None
        self.x: E = None
        self.y: G = None
        self.v: I = None
        self.r: B = None
        self.t: E = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.w: F = None
        self.s: I = None
        self.z: D = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.w: I = None
        self.q: C = None
        self.z: I = None
        self.txt = txt

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

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

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

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

class C:
    def __init__(self, txt: str):
        self.z: A = None
        self.o: F = None
        self.t: B = None
        self.r: H = None
        self.w: D = None
        self.s: A = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.q: A = None
        self.z: I = None
        self.p: B = None
        self.x: E = None
        self.y: G = None
        self.v: I = None
        self.r: B = None
        self.t: E = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.w: F = None
        self.s: I = None
        self.z: D = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.w: I = None
        self.q: C = None
        self.z: I = None
        self.txt = txt

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

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

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