class A:
    def __init__(self, txt: str):
        self.v: E = None
        self.z: D = None
        self.p: C = None
        self.y: I = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.o: I = None
        self.q: E = None
        self.w: I = None
        self.t: I = None
        self.r: H = None
        self.x: E = None
        self.y: G = None
        self.p: D = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.y: B = None
        self.r: H = None
        self.o: A = None
        self.q: H = None
        self.z: C = None
        self.p: H = None
        self.x: G = None
        self.u: G = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.s: H = None
        self.x: I = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.z: F = None
        self.o: A = None
        self.v: C = None
        self.w: A = None
        self.r: E = None
        self.txt = txt

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

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

class J:
    def __init__(self, txt: str):
        self.v: E = None
        self.s: H = None
        self.q: H = None
        self.t: C = None
        self.y: H = None
        self.o: F = None
        self.x: C = None
        self.p: H = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.o: I = None
        self.q: E = None
        self.w: I = None
        self.t: I = None
        self.r: H = None
        self.x: E = None
        self.y: G = None
        self.p: D = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.y: B = None
        self.r: H = None
        self.o: A = None
        self.q: H = None
        self.z: C = None
        self.p: H = None
        self.x: G = None
        self.u: G = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.s: H = None
        self.x: I = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.z: F = None
        self.o: A = None
        self.v: C = None
        self.w: A = None
        self.r: E = None
        self.txt = txt

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

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

class J:
    def __init__(self, txt: str):
        self.v: E = None
        self.s: H = None
        self.q: H = None
        self.t: C = None
        self.y: H = None
        self.o: F = None
        self.x: C = None
        self.p: H = None
        self.txt = txt

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

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