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

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

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

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

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

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

class G:
    def __init__(self, txt: str):
        self.q: B = None
        self.y: A = None
        self.w: E = None
        self.v: F = None
        self.o: D = None
        self.z: I = None
        self.txt = txt

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

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

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

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

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

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

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

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

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

class G:
    def __init__(self, txt: str):
        self.q: B = None
        self.y: A = None
        self.w: E = None
        self.v: F = None
        self.o: D = None
        self.z: I = None
        self.txt = txt

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

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

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

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