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

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

class C:
    def __init__(self, txt: str):
        self.z: G = None
        self.p: E = None
        self.y: E = None
        self.s: B = None
        self.r: J = None
        self.w: F = None
        self.x: H = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.s: C = None
        self.v: G = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.u: B = None
        self.txt = txt

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

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

class I:
    def __init__(self, txt: str):
        self.o: G = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.t: H = None
        self.v: C = None
        self.z: D = None
        self.o: G = None
        self.q: I = None
        self.x: B = None
        self.txt = txt

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

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

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

class C:
    def __init__(self, txt: str):
        self.z: G = None
        self.p: E = None
        self.y: E = None
        self.s: B = None
        self.r: J = None
        self.w: F = None
        self.x: H = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.s: C = None
        self.v: G = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.u: B = None
        self.txt = txt

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

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

class I:
    def __init__(self, txt: str):
        self.o: G = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.t: H = None
        self.v: C = None
        self.z: D = None
        self.o: G = None
        self.q: I = None
        self.x: B = None
        self.txt = txt

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

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