class A:
    def __init__(self, txt: str):
        self.u: I = None
        self.x: G = None
        self.r: G = None
        self.s: C = None
        self.v: D = None
        self.z: E = None
        self.o: I = None
        self.q: I = None
        self.w: I = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.y: A = None
        self.s: G = None
        self.p: H = None
        self.o: F = None
        self.z: E = None
        self.w: H = None
        self.txt = txt

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

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

class E:
    def __init__(self, txt: str):
        self.s: I = None
        self.z: C = None
        self.o: H = None
        self.r: C = None
        self.p: F = None
        self.x: F = None
        self.txt = txt

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

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

class H:
    def __init__(self, txt: str):
        self.v: D = None
        self.o: D = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.t: C = None
        self.r: I = None
        self.v: A = None
        self.w: E = None
        self.p: F = None
        self.s: C = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.y: A = None
        self.s: G = None
        self.p: H = None
        self.o: F = None
        self.z: E = None
        self.w: H = None
        self.txt = txt

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

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

class E:
    def __init__(self, txt: str):
        self.s: I = None
        self.z: C = None
        self.o: H = None
        self.r: C = None
        self.p: F = None
        self.x: F = None
        self.txt = txt

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

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

class H:
    def __init__(self, txt: str):
        self.v: D = None
        self.o: D = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.t: C = None
        self.r: I = None
        self.v: A = None
        self.w: E = None
        self.p: F = None
        self.s: C = None
        self.txt = txt

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

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