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

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

class C:
    def __init__(self, txt: str):
        self.y: F = None
        self.p: F = None
        self.t: A = None
        self.w: H = None
        self.s: D = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.x: A = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.t: F = None
        self.r: A = None
        self.x: A = None
        self.u: A = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.p: E = None
        self.o: F = None
        self.x: I = None
        self.z: I = None
        self.t: F = None
        self.y: C = None
        self.s: I = None
        self.v: E = None
        self.txt = txt

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

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

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

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

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

class C:
    def __init__(self, txt: str):
        self.y: F = None
        self.p: F = None
        self.t: A = None
        self.w: H = None
        self.s: D = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.x: A = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.t: F = None
        self.r: A = None
        self.x: A = None
        self.u: A = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.p: E = None
        self.o: F = None
        self.x: I = None
        self.z: I = None
        self.t: F = None
        self.y: C = None
        self.s: I = None
        self.v: E = None
        self.txt = txt

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

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

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

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