class A:
    def __init__(self, txt: str):
        self.t: F = None
        self.p: E = None
        self.z: J = None
        self.y: H = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.w: H = None
        self.r: J = None
        self.y: A = None
        self.t: E = None
        self.s: H = None
        self.o: J = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.o: H = None
        self.txt = txt

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

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

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

class H:
    def __init__(self, txt: str):
        self.p: B = None
        self.v: J = None
        self.o: G = None
        self.u: E = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.w: G = None
        self.u: F = None
        self.t: C = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.r: E = None
        self.txt = txt

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

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

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

class C:
    def __init__(self, txt: str):
        self.w: H = None
        self.r: J = None
        self.y: A = None
        self.t: E = None
        self.s: H = None
        self.o: J = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.o: H = None
        self.txt = txt

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

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

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

class H:
    def __init__(self, txt: str):
        self.p: B = None
        self.v: J = None
        self.o: G = None
        self.u: E = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.w: G = None
        self.u: F = None
        self.t: C = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.r: E = None
        self.txt = txt

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

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