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

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

class C:
    def __init__(self, txt: str):
        self.z: D = None
        self.v: A = None
        self.o: B = None
        self.y: H = None
        self.x: A = None
        self.p: A = None
        self.s: A = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.s: A = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.p: B = None
        self.r: C = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.t: A = None
        self.o: A = None
        self.s: F = None
        self.v: C = None
        self.p: D = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.w: C = None
        self.o: B = None
        self.txt = txt

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

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

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

class C:
    def __init__(self, txt: str):
        self.z: D = None
        self.v: A = None
        self.o: B = None
        self.y: H = None
        self.x: A = None
        self.p: A = None
        self.s: A = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.s: A = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.p: B = None
        self.r: C = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.t: A = None
        self.o: A = None
        self.s: F = None
        self.v: C = None
        self.p: D = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.w: C = None
        self.o: B = None
        self.txt = txt

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

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