class A:
    def __init__(self, txt: str):
        self.x: H = None
        self.s: H = None
        self.z: F = None
        self.w: C = None
        self.q: E = None
        self.r: F = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.y: H = None
        self.txt = txt

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

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

class E:
    def __init__(self, txt: str):
        self.u: H = None
        self.z: D = None
        self.v: C = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.x: G = None
        self.o: J = None
        self.w: B = None
        self.p: B = None
        self.y: B = None
        self.u: G = None
        self.z: C = None
        self.q: C = None
        self.t: H = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.v: I = None
        self.o: F = None
        self.x: B = None
        self.s: F = None
        self.u: I = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.y: A = None
        self.q: J = None
        self.u: J = None
        self.o: D = None
        self.t: F = None
        self.w: G = None
        self.z: A = None
        self.v: C = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.q: D = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.y: H = None
        self.txt = txt

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

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

class E:
    def __init__(self, txt: str):
        self.u: H = None
        self.z: D = None
        self.v: C = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.x: G = None
        self.o: J = None
        self.w: B = None
        self.p: B = None
        self.y: B = None
        self.u: G = None
        self.z: C = None
        self.q: C = None
        self.t: H = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.v: I = None
        self.o: F = None
        self.x: B = None
        self.s: F = None
        self.u: I = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.y: A = None
        self.q: J = None
        self.u: J = None
        self.o: D = None
        self.t: F = None
        self.w: G = None
        self.z: A = None
        self.v: C = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.q: D = None
        self.txt = txt

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

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