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

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

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

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

class E:
    def __init__(self, txt: str):
        self.u: D = None
        self.t: B = None
        self.s: A = None
        self.q: C = None
        self.v: D = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.p: E = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.t: A = None
        self.v: H = None
        self.s: B = None
        self.txt = txt

h = A("h")
j = B("j")
a = C("a")
i = D("i")
g = E("g")
m = F("m")
f = G("f")
k = H("k")
d = C("d")
b = H("b")

h.q = i
h.w = f
h.o = f
h.r = k
j.y = m
j.z = d
a.r = h
a.p = g
i.o = g
i.x = j
i.v = j
i.q = f
i.u = d
g.u = i
g.v = i
g.t = j
g.s = h
g.q = d
m.p = j
m.u = f
m.x = f
m.v = f
m.s = k
m.t = i
m.r = i
m.q = g
f.p = g
k.t = h
k.v = b
k.s = j
d.r = h
d.p = g
b.t = h
b.v = k
b.s = j
assert h.r.s.z.txt == "
class A:
    def __init__(self, txt: str):
        self.q: D = None
        self.w: G = None
        self.r: H = None
        self.o: G = None
        self.txt = txt

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

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

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

class E:
    def __init__(self, txt: str):
        self.u: D = None
        self.t: B = None
        self.s: A = None
        self.q: C = None
        self.v: D = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.p: E = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.t: A = None
        self.v: H = None
        self.s: B = None
        self.txt = txt

h = A("h")
j = B("j")
a = C("a")
i = D("i")
g = E("g")
m = F("m")
f = G("f")
k = H("k")
d = C("d")
b = H("b")

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