class A:
    def __init__(self, txt: str):
        self.y: E = None
        self.u: B = None
        self.v: E = None
        self.z: D = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.w: E = None
        self.o: C = None
        self.p: G = None
        self.u: F = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.q: G = None
        self.v: C = None
        self.p: A = None
        self.w: B = None
        self.x: G = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.x: C = None
        self.o: G = 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.o: G = None
        self.t: G = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.w: E = None
        self.o: C = None
        self.p: G = None
        self.u: F = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.q: G = None
        self.v: C = None
        self.p: A = None
        self.w: B = None
        self.x: G = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.x: C = None
        self.o: G = 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.o: G = None
        self.t: G = None
        self.txt = txt

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

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