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

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

class C:
    def __init__(self, txt: str):
        self.s: B = None
        self.y: E = None
        self.w: E = None
        self.v: D = None
        self.x: G = None
        self.o: B = None
        self.p: A = None
        self.z: H = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.s: F = None
        self.txt = txt

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

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

class G:
    def __init__(self, txt: str):
        self.o: H = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.z: G = None
        self.y: D = None
        self.s: B = None
        self.q: A = None
        self.t: A = None
        self.r: A = None
        self.o: A = None
        self.txt = txt

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

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

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

class C:
    def __init__(self, txt: str):
        self.s: B = None
        self.y: E = None
        self.w: E = None
        self.v: D = None
        self.x: G = None
        self.o: B = None
        self.p: A = None
        self.z: H = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.s: F = None
        self.txt = txt

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

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

class G:
    def __init__(self, txt: str):
        self.o: H = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.z: G = None
        self.y: D = None
        self.s: B = None
        self.q: A = None
        self.t: A = None
        self.r: A = None
        self.o: A = None
        self.txt = txt

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

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