class A:
    def __init__(self, txt: str):
        self.q: C = None
        self.x: F = None
        self.u: C = None
        self.z: H = None
        self.y: I = None
        self.w: E = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.r: C = None
        self.s: D = None
        self.u: E = None
        self.y: D = None
        self.q: E = None
        self.p: A = None
        self.w: A = None
        self.o: H = None
        self.z: H = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.q: F = None
        self.y: E = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.s: G = None
        self.v: C = None
        self.t: A = None
        self.r: H = None
        self.w: B = None
        self.txt = txt

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

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

class H:
    def __init__(self, txt: str):
        self.z: B = None
        self.txt = txt

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

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

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

class B:
    def __init__(self, txt: str):
        self.r: C = None
        self.s: D = None
        self.u: E = None
        self.y: D = None
        self.q: E = None
        self.p: A = None
        self.w: A = None
        self.o: H = None
        self.z: H = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.q: F = None
        self.y: E = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.s: G = None
        self.v: C = None
        self.t: A = None
        self.r: H = None
        self.w: B = None
        self.txt = txt

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

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

class H:
    def __init__(self, txt: str):
        self.z: B = None
        self.txt = txt

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

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

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