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

class B:
    def __init__(self, txt: str):
        self.p: G = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.r: C = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.y: I = None
        self.t: G = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.t: D = None
        self.s: C = None
        self.z: C = None
        self.x: J = None
        self.o: C = None
        self.y: I = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.v: F = None
        self.x: G = None
        self.txt = txt

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

class J:
    def __init__(self, txt: str):
        self.v: D = None
        self.x: I = None
        self.u: H = None
        self.o: G = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.p: G = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.r: C = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.y: I = None
        self.t: G = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.t: D = None
        self.s: C = None
        self.z: C = None
        self.x: J = None
        self.o: C = None
        self.y: I = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.v: F = None
        self.x: G = None
        self.txt = txt

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

class J:
    def __init__(self, txt: str):
        self.v: D = None
        self.x: I = None
        self.u: H = None
        self.o: G = None
        self.txt = txt

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

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