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

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

class C:
    def __init__(self, txt: str):
        self.w: J = None
        self.y: J = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.q: E = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.u: B = None
        self.p: I = None
        self.q: D = None
        self.s: C = None
        self.r: G = None
        self.x: F = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.y: D = None
        self.txt = txt

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

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

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

class J:
    def __init__(self, txt: str):
        self.r: E = None
        self.p: E = None
        self.q: I = None
        self.s: C = None
        self.u: I = None
        self.txt = txt

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

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

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

class C:
    def __init__(self, txt: str):
        self.w: J = None
        self.y: J = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.q: E = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.u: B = None
        self.p: I = None
        self.q: D = None
        self.s: C = None
        self.r: G = None
        self.x: F = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.y: D = None
        self.txt = txt

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

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

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

class J:
    def __init__(self, txt: str):
        self.r: E = None
        self.p: E = None
        self.q: I = None
        self.s: C = None
        self.u: I = None
        self.txt = txt

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

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