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

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

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

class D:
    def __init__(self, txt: str):
        self.v: H = None
        self.z: F = None
        self.u: F = None
        self.o: B = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.p: B = None
        self.s: H = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.w: D = None
        self.s: E = None
        self.u: F = None
        self.y: G = None
        self.o: A = None
        self.x: D = None
        self.q: E = None
        self.z: G = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.p: E = None
        self.x: F = None
        self.s: E = None
        self.q: B = None
        self.v: H = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.y: F = None
        self.x: A = None
        self.u: D = None
        self.s: E = None
        self.o: C = None
        self.r: E = None
        self.txt = txt

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

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

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

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

class D:
    def __init__(self, txt: str):
        self.v: H = None
        self.z: F = None
        self.u: F = None
        self.o: B = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.p: B = None
        self.s: H = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.w: D = None
        self.s: E = None
        self.u: F = None
        self.y: G = None
        self.o: A = None
        self.x: D = None
        self.q: E = None
        self.z: G = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.p: E = None
        self.x: F = None
        self.s: E = None
        self.q: B = None
        self.v: H = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.y: F = None
        self.x: A = None
        self.u: D = None
        self.s: E = None
        self.o: C = None
        self.r: E = None
        self.txt = txt

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

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