class A:
    def __init__(self, txt: str):
        self.s: C = None
        self.v: H = None
        self.y: F = None
        self.o: H = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.v: A = None
        self.u: G = None
        self.r: F = None
        self.x: A = None
        self.p: E = None
        self.txt = txt

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

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

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

class G:
    def __init__(self, txt: str):
        self.q: C = None
        self.z: D = None
        self.t: E = None
        self.o: A = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.s: H = None
        self.z: B = None
        self.v: H = None
        self.w: E = None
        self.txt = txt

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

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

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

class C:
    def __init__(self, txt: str):
        self.v: A = None
        self.u: G = None
        self.r: F = None
        self.x: A = None
        self.p: E = None
        self.txt = txt

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

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

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

class G:
    def __init__(self, txt: str):
        self.q: C = None
        self.z: D = None
        self.t: E = None
        self.o: A = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.s: H = None
        self.z: B = None
        self.v: H = None
        self.w: E = None
        self.txt = txt

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

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