class A:
    def __init__(self, txt: str):
        self.y: J = None
        self.o: B = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.t: E = None
        self.z: A = None
        self.v: G = None
        self.q: I = None
        self.w: J = None
        self.p: F = None
        self.txt = txt

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

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

class E:
    def __init__(self, txt: str):
        self.t: I = None
        self.y: J = None
        self.w: F = None
        self.s: G = None
        self.r: C = None
        self.p: H = None
        self.v: J = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.u: F = None
        self.z: J = None
        self.t: D = None
        self.p: A = None
        self.txt = txt

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

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

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

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

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

class B:
    def __init__(self, txt: str):
        self.t: E = None
        self.z: A = None
        self.v: G = None
        self.q: I = None
        self.w: J = None
        self.p: F = None
        self.txt = txt

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

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

class E:
    def __init__(self, txt: str):
        self.t: I = None
        self.y: J = None
        self.w: F = None
        self.s: G = None
        self.r: C = None
        self.p: H = None
        self.v: J = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.u: F = None
        self.z: J = None
        self.t: D = None
        self.p: A = None
        self.txt = txt

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

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

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

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

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