class A:
    def __init__(self, txt: str):
        self.r: H = None
        self.s: J = None
        self.z: B = None
        self.t: B = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.r: F = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.r: A = None
        self.s: H = None
        self.q: H = None
        self.y: C = None
        self.o: D = None
        self.u: A = None
        self.p: F = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.w: B = None
        self.z: G = None
        self.x: G = None
        self.y: J = None
        self.o: G = None
        self.q: H = None
        self.u: C = None
        self.s: I = None
        self.txt = txt

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

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

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

class J:
    def __init__(self, txt: str):
        self.o: C = None
        self.p: A = None
        self.y: G = None
        self.r: I = None
        self.u: D = None
        self.t: D = None
        self.txt = txt

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

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

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

class C:
    def __init__(self, txt: str):
        self.r: F = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.r: A = None
        self.s: H = None
        self.q: H = None
        self.y: C = None
        self.o: D = None
        self.u: A = None
        self.p: F = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.w: B = None
        self.z: G = None
        self.x: G = None
        self.y: J = None
        self.o: G = None
        self.q: H = None
        self.u: C = None
        self.s: I = None
        self.txt = txt

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

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

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

class J:
    def __init__(self, txt: str):
        self.o: C = None
        self.p: A = None
        self.y: G = None
        self.r: I = None
        self.u: D = None
        self.t: D = None
        self.txt = txt

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

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