class A:
    def __init__(self, txt: str):
        self.s: E = None
        self.txt = txt

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

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

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

class E:
    def __init__(self, txt: str):
        self.s: I = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.v: H = None
        self.u: A = None
        self.o: A = None
        self.y: E = None
        self.w: D = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.v: A = None
        self.t: F = None
        self.p: A = None
        self.z: I = None
        self.r: A = None
        self.txt = txt

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

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

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

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

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

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

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

class E:
    def __init__(self, txt: str):
        self.s: I = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.v: H = None
        self.u: A = None
        self.o: A = None
        self.y: E = None
        self.w: D = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.v: A = None
        self.t: F = None
        self.p: A = None
        self.z: I = None
        self.r: A = None
        self.txt = txt

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

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

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

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