class A:
    def __init__(self, txt: str):
        self.y: B = None
        self.t: D = None
        self.s: B = None
        self.r: H = None
        self.w: G = None
        self.x: G = None
        self.p: H = None
        self.o: D = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.u: A = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.y: F = None
        self.q: H = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.x: H = None
        self.y: B = None
        self.z: C = None
        self.q: B = None
        self.u: H = None
        self.o: D = None
        self.txt = txt

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

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

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

e = A("e")
c = B("c")
m = C("m")
g = D("g")
b = E("b")
j = F("j")
a = G("a")
h = H("h")
l = H("l")
i = C("i")

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

class B:
    def __init__(self, txt: str):
        self.u: A = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.y: F = None
        self.q: H = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.x: H = None
        self.y: B = None
        self.z: C = None
        self.q: B = None
        self.u: H = None
        self.o: D = None
        self.txt = txt

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

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

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

e = A("e")
c = B("c")
m = C("m")
g = D("g")
b = E("b")
j = F("j")
a = G("a")
h = H("h")
l = H("l")
i = C("i")

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