class A:
    def __init__(self, txt: str):
        self.t: C = None
        self.q: E = None
        self.x: F = None
        self.w: B = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.o: H = None
        self.q: C = None
        self.y: B = None
        self.t: C = None
        self.r: E = None
        self.p: H = None
        self.s: B = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.u: F = None
        self.q: H = None
        self.r: D = None
        self.w: E = None
        self.p: E = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.q: H = None
        self.o: G = None
        self.u: D = None
        self.w: G = None
        self.v: B = None
        self.x: E = None
        self.t: E = None
        self.txt = txt

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

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

class H:
    def __init__(self, txt: str):
        self.r: G = None
        self.p: B = None
        self.w: G = None
        self.s: E = None
        self.o: F = None
        self.x: D = None
        self.txt = txt

e = A("e")
n = B("n")
k = C("k")
c = D("c")
h = E("h")
g = F("g")
i = G("i")
d = H("d")
j = B("j")
m = E("m")

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

class B:
    def __init__(self, txt: str):
        self.o: H = None
        self.q: C = None
        self.y: B = None
        self.t: C = None
        self.r: E = None
        self.p: H = None
        self.s: B = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.u: F = None
        self.q: H = None
        self.r: D = None
        self.w: E = None
        self.p: E = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.q: H = None
        self.o: G = None
        self.u: D = None
        self.w: G = None
        self.v: B = None
        self.x: E = None
        self.t: E = None
        self.txt = txt

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

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

class H:
    def __init__(self, txt: str):
        self.r: G = None
        self.p: B = None
        self.w: G = None
        self.s: E = None
        self.o: F = None
        self.x: D = None
        self.txt = txt

e = A("e")
n = B("n")
k = C("k")
c = D("c")
h = E("h")
g = F("g")
i = G("i")
d = H("d")
j = B("j")
m = E("m")

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