class A:
    def __init__(self, txt: str):
        self.o: D = None
        self.z: B = None
        self.v: F = None
        self.y: G = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.y: C = None
        self.p: A = None
        self.q: H = None
        self.v: G = None
        self.t: A = None
        self.u: G = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.p: B = None
        self.t: E = None
        self.u: J = None
        self.s: H = None
        self.r: E = None
        self.w: E = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.o: F = None
        self.v: F = None
        self.p: G = None
        self.s: G = None
        self.y: C = None
        self.q: G = None
        self.w: D = None
        self.r: F = None
        self.u: I = None
        self.txt = txt

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

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

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

class I:
    def __init__(self, txt: str):
        self.o: F = None
        self.txt = txt

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

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

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

class B:
    def __init__(self, txt: str):
        self.y: C = None
        self.p: A = None
        self.q: H = None
        self.v: G = None
        self.t: A = None
        self.u: G = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.p: B = None
        self.t: E = None
        self.u: J = None
        self.s: H = None
        self.r: E = None
        self.w: E = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.o: F = None
        self.v: F = None
        self.p: G = None
        self.s: G = None
        self.y: C = None
        self.q: G = None
        self.w: D = None
        self.r: F = None
        self.u: I = None
        self.txt = txt

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

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

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

class I:
    def __init__(self, txt: str):
        self.o: F = None
        self.txt = txt

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

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

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