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

class B:
    def __init__(self, txt: str):
        self.y: E = None
        self.u: E = None
        self.r: J = None
        self.w: A = None
        self.q: A = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.w: E = None
        self.z: E = None
        self.v: I = None
        self.r: J = None
        self.u: I = None
        self.o: H = None
        self.y: G = None
        self.q: A = None
        self.p: B = None
        self.txt = txt

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

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

class G:
    def __init__(self, txt: str):
        self.p: I = None
        self.v: I = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.t: J = None
        self.w: I = None
        self.v: B = None
        self.s: F = None
        self.txt = txt

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

class J:
    def __init__(self, txt: str):
        self.y: H = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.y: E = None
        self.u: E = None
        self.r: J = None
        self.w: A = None
        self.q: A = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.w: E = None
        self.z: E = None
        self.v: I = None
        self.r: J = None
        self.u: I = None
        self.o: H = None
        self.y: G = None
        self.q: A = None
        self.p: B = None
        self.txt = txt

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

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

class G:
    def __init__(self, txt: str):
        self.p: I = None
        self.v: I = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.t: J = None
        self.w: I = None
        self.v: B = None
        self.s: F = None
        self.txt = txt

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

class J:
    def __init__(self, txt: str):
        self.y: H = None
        self.txt = txt

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

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