class A:
    def __init__(self, txt: str):
        self.z: H = None
        self.y: D = None
        self.w: B = None
        self.o: H = None
        self.q: F = None
        self.u: D = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.v: G = None
        self.t: F = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.y: G = None
        self.txt = txt

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

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

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

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

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

class C:
    def __init__(self, txt: str):
        self.v: G = None
        self.t: F = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.y: G = None
        self.txt = txt

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

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

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

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