class A:
    def __init__(self, txt: str):
        self.w: C = None
        self.v: D = None
        self.q: D = None
        self.u: D = None
        self.txt = txt

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

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

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

class E:
    def __init__(self, txt: str):
        self.z: C = None
        self.x: D = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.t: D = None
        self.w: A = None
        self.p: H = None
        self.r: D = None
        self.q: C = None
        self.txt = txt

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

m = A("m")
h = B("h")
c = C("c")
e = D("e")
f = E("f")
j = F("j")
d = G("d")
a = H("a")
l = B("l")

m.w = c
m.v = e
m.q = e
m.u = e
h.p = c
h.q = l
h.u = a
h.w = a
c.p = a
c.x = f
c.o = d
c.v = d
c.q = d
c.y = m
c.r = e
c.z = e
e.y = a
e.t = m
e.q = j
e.p = c
f.z = c
f.x = e
j.z = c
j.w = c
j.q = f
j.v = f
j.x = f
j.s = m
j.u = m
j.y = a
d.t = e
d.r = e
d.w = m
d.p = a
d.q = c
a.o = d
a.p = d
a.q = c
a.x = c
a.t = m
l.p = c
l.q = h
l.u = a
l.w = a
assert j.z.x.x.t.w.y.txt == "
class A:
    def __init__(self, txt: str):
        self.w: C = None
        self.v: D = None
        self.q: D = None
        self.u: D = None
        self.txt = txt

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

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

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

class E:
    def __init__(self, txt: str):
        self.z: C = None
        self.x: D = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.t: D = None
        self.w: A = None
        self.p: H = None
        self.r: D = None
        self.q: C = None
        self.txt = txt

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

m = A("m")
h = B("h")
c = C("c")
e = D("e")
f = E("f")
j = F("j")
d = G("d")
a = H("a")
l = B("l")

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