class A:
    def __init__(self, txt: str):
        self.s: C = None
        self.t: F = None
        self.txt = txt

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

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

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

class E:
    def __init__(self, txt: str):
        self.r: A = None
        self.t: C = None
        self.v: C = None
        self.s: D = None
        self.z: A = None
        self.x: C = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.q: E = None
        self.w: A = None
        self.v: E = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.o: D = None
        self.w: E = None
        self.p: C = None
        self.s: C = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.v: C = None
        self.o: E = None
        self.s: B = None
        self.txt = txt

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

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

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

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

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

class E:
    def __init__(self, txt: str):
        self.r: A = None
        self.t: C = None
        self.v: C = None
        self.s: D = None
        self.z: A = None
        self.x: C = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.q: E = None
        self.w: A = None
        self.v: E = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.o: D = None
        self.w: E = None
        self.p: C = None
        self.s: C = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.v: C = None
        self.o: E = None
        self.s: B = None
        self.txt = txt

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

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