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

class B:
    def __init__(self, txt: str):
        self.v: C = None
        self.s: F = None
        self.w: J = None
        self.q: C = None
        self.x: C = None
        self.txt = txt

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

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

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

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

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

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

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

class J:
    def __init__(self, txt: str):
        self.s: F = None
        self.x: E = None
        self.o: C = None
        self.w: A = None
        self.v: I = None
        self.t: B = None
        self.r: G = None
        self.q: C = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.v: C = None
        self.s: F = None
        self.w: J = None
        self.q: C = None
        self.x: C = None
        self.txt = txt

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

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

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

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

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

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

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

class J:
    def __init__(self, txt: str):
        self.s: F = None
        self.x: E = None
        self.o: C = None
        self.w: A = None
        self.v: I = None
        self.t: B = None
        self.r: G = None
        self.q: C = None
        self.txt = txt

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

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