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

class B:
    def __init__(self, txt: str):
        self.p: C = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.x: F = None
        self.q: I = None
        self.t: C = None
        self.p: B = None
        self.u: E = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.u: F = None
        self.w: C = None
        self.z: B = None
        self.r: C = None
        self.y: G = None
        self.v: F = None
        self.t: A = None
        self.txt = txt

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

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

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

class I:
    def __init__(self, txt: str):
        self.x: F = None
        self.q: A = None
        self.txt = txt

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

e.o = n
e.w = n
e.x = n
e.v = c
e.t = c
e.u = c
e.z = j
e.q = m
e.p = i
b.p = c
c.y = b
c.p = n
n.x = m
n.q = i
n.t = c
n.p = b
n.u = g
g.u = m
g.v = m
g.w = c
g.r = c
g.z = b
g.y = j
g.t = e
m.o = f
m.q = n
m.u = j
m.w = j
m.t = j
m.s = e
j.r = e
j.x = e
j.t = e
j.q = l
j.s = m
j.o = m
j.v = c
j.z = f
f.s = g
f.q = g
f.x = e
f.p = e
i.x = m
i.q = e
l.x = m
l.q = e
assert m.t.z.s.z.txt == "
class A:
    def __init__(self, txt: str):
        self.o: D = None
        self.v: C = None
        self.z: G = None
        self.w: D = None
        self.q: F = None
        self.t: C = None
        self.x: D = None
        self.u: C = None
        self.p: I = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.p: C = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.x: F = None
        self.q: I = None
        self.t: C = None
        self.p: B = None
        self.u: E = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.u: F = None
        self.w: C = None
        self.z: B = None
        self.r: C = None
        self.y: G = None
        self.v: F = None
        self.t: A = None
        self.txt = txt

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

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

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

class I:
    def __init__(self, txt: str):
        self.x: F = None
        self.q: A = None
        self.txt = txt

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

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