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

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

class C:
    def __init__(self, txt: str):
        self.t: G = None
        self.s: G = None
        self.x: E = None
        self.p: A = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.r: C = None
        self.w: F = None
        self.x: A = None
        self.u: A = None
        self.q: E = None
        self.o: A = None
        self.t: J = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.p: H = None
        self.y: H = None
        self.u: J = None
        self.txt = txt

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

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

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

class I:
    def __init__(self, txt: str):
        self.x: E = None
        self.u: G = None
        self.y: G = None
        self.w: C = None
        self.z: H = None
        self.q: H = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.v: F = None
        self.p: E = None
        self.t: F = None
        self.z: D = None
        self.txt = txt

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

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

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

class C:
    def __init__(self, txt: str):
        self.t: G = None
        self.s: G = None
        self.x: E = None
        self.p: A = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.r: C = None
        self.w: F = None
        self.x: A = None
        self.u: A = None
        self.q: E = None
        self.o: A = None
        self.t: J = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.p: H = None
        self.y: H = None
        self.u: J = None
        self.txt = txt

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

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

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

class I:
    def __init__(self, txt: str):
        self.x: E = None
        self.u: G = None
        self.y: G = None
        self.w: C = None
        self.z: H = None
        self.q: H = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.v: F = None
        self.p: E = None
        self.t: F = None
        self.z: D = None
        self.txt = txt

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

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