class A:
    def __init__(self, txt: str):
        self.v: B = None
        self.o: C = None
        self.p: I = None
        self.r: F = None
        self.q: D = None
        self.s: E = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.r: F = None
        self.o: A = None
        self.s: C = None
        self.z: I = None
        self.x: J = None
        self.txt = txt

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

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

class E:
    def __init__(self, txt: str):
        self.t: I = None
        self.o: J = None
        self.p: A = None
        self.r: F = None
        self.u: H = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.w: G = None
        self.t: B = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.x: E = None
        self.r: E = None
        self.q: I = None
        self.txt = txt

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

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

class J:
    def __init__(self, txt: str):
        self.p: B = None
        self.x: E = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.r: F = None
        self.o: A = None
        self.s: C = None
        self.z: I = None
        self.x: J = None
        self.txt = txt

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

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

class E:
    def __init__(self, txt: str):
        self.t: I = None
        self.o: J = None
        self.p: A = None
        self.r: F = None
        self.u: H = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.w: G = None
        self.t: B = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.x: E = None
        self.r: E = None
        self.q: I = None
        self.txt = txt

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

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

class J:
    def __init__(self, txt: str):
        self.p: B = None
        self.x: E = None
        self.txt = txt

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

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