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

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

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

class D:
    def __init__(self, txt: str):
        self.z: A = None
        self.s: E = None
        self.o: H = None
        self.w: H = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.o: D = None
        self.v: H = None
        self.y: A = None
        self.txt = txt

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

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

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

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

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

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

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

class D:
    def __init__(self, txt: str):
        self.z: A = None
        self.s: E = None
        self.o: H = None
        self.w: H = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.o: D = None
        self.v: H = None
        self.y: A = None
        self.txt = txt

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

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

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

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

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