class A:
    def __init__(self, txt: str):
        self.v: D = None
        self.t: F = None
        self.u: J = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.u: F = None
        self.v: E = None
        self.p: D = None
        self.y: D = None
        self.q: D = None
        self.x: H = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.q: C = None
        self.t: F = None
        self.z: C = None
        self.u: H = None
        self.x: H = None
        self.txt = txt

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

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

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

class H:
    def __init__(self, txt: str):
        self.s: J = None
        self.x: D = None
        self.u: E = None
        self.p: E = None
        self.t: D = None
        self.z: D = None
        self.r: G = None
        self.v: C = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.t: D = None
        self.txt = txt

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

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

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

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

class C:
    def __init__(self, txt: str):
        self.u: F = None
        self.v: E = None
        self.p: D = None
        self.y: D = None
        self.q: D = None
        self.x: H = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.q: C = None
        self.t: F = None
        self.z: C = None
        self.u: H = None
        self.x: H = None
        self.txt = txt

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

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

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

class H:
    def __init__(self, txt: str):
        self.s: J = None
        self.x: D = None
        self.u: E = None
        self.p: E = None
        self.t: D = None
        self.z: D = None
        self.r: G = None
        self.v: C = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.t: D = None
        self.txt = txt

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

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

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