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

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

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

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

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

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

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

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

class I:
    def __init__(self, txt: str):
        self.y: A = None
        self.s: D = None
        self.r: E = None
        self.q: J = None
        self.u: B = None
        self.o: F = None
        self.txt = txt

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

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

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

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

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

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

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

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

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

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

class I:
    def __init__(self, txt: str):
        self.y: A = None
        self.s: D = None
        self.r: E = None
        self.q: J = None
        self.u: B = None
        self.o: F = None
        self.txt = txt

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

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

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