class A:
    def __init__(self, txt: str):
        self.o: E = None
        self.z: G = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.s: F = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.x: E = None
        self.r: D = None
        self.s: F = None
        self.o: G = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.v: C = None
        self.w: A = None
        self.z: E = None
        self.q: H = None
        self.p: D = None
        self.o: E = None
        self.u: F = None
        self.r: E = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.p: B = None
        self.w: B = None
        self.r: D = None
        self.z: C = None
        self.s: E = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.s: E = None
        self.txt = txt

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

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

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

class B:
    def __init__(self, txt: str):
        self.s: F = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.x: E = None
        self.r: D = None
        self.s: F = None
        self.o: G = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.v: C = None
        self.w: A = None
        self.z: E = None
        self.q: H = None
        self.p: D = None
        self.o: E = None
        self.u: F = None
        self.r: E = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.p: B = None
        self.w: B = None
        self.r: D = None
        self.z: C = None
        self.s: E = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.s: E = None
        self.txt = txt

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

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

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