class A:
    def __init__(self, txt: str):
        self.z: B = None
        self.txt = txt

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

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

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

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

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

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

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

k = A("k")
e = B("e")
g = C("g")
m = D("m")
l = E("l")
n = F("n")
c = G("c")
f = H("f")
d = B("d")
j = D("j")

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

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

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

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

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

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

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

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

k = A("k")
e = B("e")
g = C("g")
m = D("m")
l = E("l")
n = F("n")
c = G("c")
f = H("f")
d = B("d")
j = D("j")

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