class A:
    def __init__(self, txt: str):
        self.z: J = None
        self.s: F = None
        self.y: B = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.o: C = None
        self.x: D = None
        self.r: H = None
        self.u: F = None
        self.y: C = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.s: G = None
        self.p: H = None
        self.z: D = None
        self.u: G = None
        self.t: B = None
        self.w: G = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.u: H = None
        self.p: J = None
        self.z: B = None
        self.y: I = None
        self.t: C = None
        self.r: J = None
        self.v: I = None
        self.o: G = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.o: D = None
        self.w: C = None
        self.q: H = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.y: I = None
        self.t: C = None
        self.w: E = None
        self.z: F = None
        self.r: J = None
        self.q: F = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.t: C = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.r: F = None
        self.t: F = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.o: C = None
        self.x: D = None
        self.r: H = None
        self.u: F = None
        self.y: C = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.s: G = None
        self.p: H = None
        self.z: D = None
        self.u: G = None
        self.t: B = None
        self.w: G = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.u: H = None
        self.p: J = None
        self.z: B = None
        self.y: I = None
        self.t: C = None
        self.r: J = None
        self.v: I = None
        self.o: G = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.o: D = None
        self.w: C = None
        self.q: H = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.y: I = None
        self.t: C = None
        self.w: E = None
        self.z: F = None
        self.r: J = None
        self.q: F = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.t: C = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.r: F = None
        self.t: F = None
        self.txt = txt

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

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