class A:
    def __init__(self, txt: str):
        self.x: H = None
        self.t: I = None
        self.z: B = None
        self.y: I = None
        self.r: G = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.s: F = None
        self.q: J = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.w: J = None
        self.p: G = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.u: D = None
        self.p: F = None
        self.o: J = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.u: B = None
        self.p: C = None
        self.q: J = None
        self.v: D = None
        self.r: H = None
        self.t: C = None
        self.y: I = None
        self.s: J = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.x: A = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.u: J = None
        self.y: G = None
        self.t: B = None
        self.w: C = None
        self.v: D = None
        self.o: C = None
        self.txt = txt

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

class J:
    def __init__(self, txt: str):
        self.r: G = None
        self.p: H = None
        self.w: H = None
        self.q: I = None
        self.txt = txt

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

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

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

class C:
    def __init__(self, txt: str):
        self.s: F = None
        self.q: J = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.w: J = None
        self.p: G = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.u: D = None
        self.p: F = None
        self.o: J = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.u: B = None
        self.p: C = None
        self.q: J = None
        self.v: D = None
        self.r: H = None
        self.t: C = None
        self.y: I = None
        self.s: J = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.x: A = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.u: J = None
        self.y: G = None
        self.t: B = None
        self.w: C = None
        self.v: D = None
        self.o: C = None
        self.txt = txt

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

class J:
    def __init__(self, txt: str):
        self.r: G = None
        self.p: H = None
        self.w: H = None
        self.q: I = None
        self.txt = txt

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

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