class A:
    def __init__(self, txt: str):
        self.r: E = None
        self.t: C = None
        self.x: H = None
        self.w: H = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.y: B = None
        self.o: F = None
        self.q: H = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.q: B = None
        self.txt = txt

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

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

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

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

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

class C:
    def __init__(self, txt: str):
        self.y: B = None
        self.o: F = None
        self.q: H = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.q: B = None
        self.txt = txt

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

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

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

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