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

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

class C:
    def __init__(self, txt: str):
        self.r: B = None
        self.o: B = None
        self.x: H = None
        self.v: E = None
        self.y: I = None
        self.t: D = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.u: C = None
        self.txt = txt

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

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

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

class I:
    def __init__(self, txt: str):
        self.x: C = None
        self.w: H = None
        self.v: D = None
        self.txt = txt

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

m = A("m")
h = B("h")
i = C("i")
d = D("d")
f = E("f")
a = F("a")
g = G("g")
c = H("c")
j = I("j")
b = J("b")

m.s = c
m.r = g
m.z = g
m.p = a
m.w = i
m.v = h
m.q = f
h.t = g
i.r = h
i.o = h
i.x = c
i.v = f
i.y = j
i.t = d
d.y = j
d.x = a
d.p = b
d.t = m
d.r = m
f.u = i
a.y = g
a.t = f
a.v = d
g.w = b
g.o = h
g.t = h
g.q = i
g.z = f
g.v = f
g.x = f
g.p = f
g.u = a
g.r = c
c.z = h
j.x = i
j.w = c
j.v = d
b.w = m
b.y = m
b.r = i
assert a.t.u.y.w.z.txt == "
class A:
    def __init__(self, txt: str):
        self.s: H = None
        self.r: G = None
        self.p: F = None
        self.w: C = None
        self.z: G = None
        self.v: B = None
        self.q: E = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.r: B = None
        self.o: B = None
        self.x: H = None
        self.v: E = None
        self.y: I = None
        self.t: D = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.u: C = None
        self.txt = txt

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

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

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

class I:
    def __init__(self, txt: str):
        self.x: C = None
        self.w: H = None
        self.v: D = None
        self.txt = txt

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

m = A("m")
h = B("h")
i = C("i")
d = D("d")
f = E("f")
a = F("a")
g = G("g")
c = H("c")
j = I("j")
b = J("b")

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