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

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

class C:
    def __init__(self, txt: str):
        self.o: G = None
        self.x: G = None
        self.u: G = None
        self.v: C = None
        self.y: A = None
        self.q: G = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.x: F = None
        self.t: G = None
        self.o: A = None
        self.z: H = None
        self.txt = txt

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

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

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

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

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

class C:
    def __init__(self, txt: str):
        self.o: G = None
        self.x: G = None
        self.u: G = None
        self.v: C = None
        self.y: A = None
        self.q: G = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.x: F = None
        self.t: G = None
        self.o: A = None
        self.z: H = None
        self.txt = txt

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

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

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

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