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

class B:
    def __init__(self, txt: str):
        self.u: G = None
        self.v: C = None
        self.p: H = None
        self.z: F = None
        self.x: A = None
        self.q: C = None
        self.y: F = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.p: E = None
        self.y: D = None
        self.r: A = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.y: A = None
        self.z: H = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.s: B = None
        self.o: G = None
        self.y: E = None
        self.p: G = None
        self.v: G = None
        self.u: G = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.o: C = None
        self.txt = txt

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

a = A("a")
d = B("d")
n = C("n")
e = D("e")
g = E("g")
k = F("k")
j = G("j")
l = H("l")

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

class B:
    def __init__(self, txt: str):
        self.u: G = None
        self.v: C = None
        self.p: H = None
        self.z: F = None
        self.x: A = None
        self.q: C = None
        self.y: F = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.p: E = None
        self.y: D = None
        self.r: A = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.y: A = None
        self.z: H = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.s: B = None
        self.o: G = None
        self.y: E = None
        self.p: G = None
        self.v: G = None
        self.u: G = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.o: C = None
        self.txt = txt

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

a = A("a")
d = B("d")
n = C("n")
e = D("e")
g = E("g")
k = F("k")
j = G("j")
l = H("l")

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