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

class B:
    def __init__(self, txt: str):
        self.q: E = None
        self.r: D = None
        self.s: I = None
        self.y: E = None
        self.v: H = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.q: F = None
        self.w: I = None
        self.x: G = None
        self.u: D = None
        self.z: H = None
        self.t: A = None
        self.o: D = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.y: H = None
        self.x: H = None
        self.p: A = None
        self.t: C = None
        self.q: E = None
        self.v: C = None
        self.o: E = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.q: H = None
        self.s: D = None
        self.r: I = None
        self.o: I = None
        self.p: A = None
        self.u: D = None
        self.x: F = None
        self.v: H = None
        self.t: G = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.o: A = None
        self.s: I = None
        self.p: A = None
        self.x: D = None
        self.r: E = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.s: H = None
        self.p: C = None
        self.r: E = None
        self.t: B = None
        self.x: A = None
        self.z: D = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.q: E = None
        self.r: D = None
        self.s: I = None
        self.y: E = None
        self.v: H = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.q: F = None
        self.w: I = None
        self.x: G = None
        self.u: D = None
        self.z: H = None
        self.t: A = None
        self.o: D = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.y: H = None
        self.x: H = None
        self.p: A = None
        self.t: C = None
        self.q: E = None
        self.v: C = None
        self.o: E = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.q: H = None
        self.s: D = None
        self.r: I = None
        self.o: I = None
        self.p: A = None
        self.u: D = None
        self.x: F = None
        self.v: H = None
        self.t: G = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.o: A = None
        self.s: I = None
        self.p: A = None
        self.x: D = None
        self.r: E = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.s: H = None
        self.p: C = None
        self.r: E = None
        self.t: B = None
        self.x: A = None
        self.z: D = None
        self.txt = txt

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

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