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

class B:
    def __init__(self, txt: str):
        self.s: C = None
        self.v: C = None
        self.w: G = None
        self.t: A = None
        self.q: E = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.v: J = None
        self.t: B = None
        self.p: E = None
        self.u: I = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.o: A = None
        self.u: G = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.x: B = None
        self.s: F = None
        self.o: D = None
        self.z: H = None
        self.w: A = None
        self.q: H = None
        self.v: D = None
        self.txt = txt

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

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

class H:
    def __init__(self, txt: str):
        self.y: C = None
        self.s: A = None
        self.u: A = None
        self.x: F = None
        self.z: A = None
        self.txt = txt

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

class J:
    def __init__(self, txt: str):
        self.w: H = None
        self.t: C = None
        self.p: G = None
        self.o: C = None
        self.r: B = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.s: C = None
        self.v: C = None
        self.w: G = None
        self.t: A = None
        self.q: E = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.v: J = None
        self.t: B = None
        self.p: E = None
        self.u: I = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.o: A = None
        self.u: G = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.x: B = None
        self.s: F = None
        self.o: D = None
        self.z: H = None
        self.w: A = None
        self.q: H = None
        self.v: D = None
        self.txt = txt

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

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

class H:
    def __init__(self, txt: str):
        self.y: C = None
        self.s: A = None
        self.u: A = None
        self.x: F = None
        self.z: A = None
        self.txt = txt

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

class J:
    def __init__(self, txt: str):
        self.w: H = None
        self.t: C = None
        self.p: G = None
        self.o: C = None
        self.r: B = None
        self.txt = txt

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

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