class A:
    def __init__(self, txt: str):
        self.t: H = None
        self.z: C = None
        self.w: H = None
        self.txt = txt

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

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

class D:
    def __init__(self, txt: str):
        self.r: I = None
        self.v: H = None
        self.txt = txt

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

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

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

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

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

j = A("j")
i = B("i")
e = C("e")
d = D("d")
c = E("c")
m = F("m")
n = G("n")
k = H("k")
h = I("h")
b = D("b")

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

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

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

class D:
    def __init__(self, txt: str):
        self.r: I = None
        self.v: H = None
        self.txt = txt

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

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

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

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

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

j = A("j")
i = B("i")
e = C("e")
d = D("d")
c = E("c")
m = F("m")
n = G("n")
k = H("k")
h = I("h")
b = D("b")

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