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

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

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

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

class E:
    def __init__(self, txt: str):
        self.w: C = None
        self.z: C = None
        self.p: G = None
        self.x: C = None
        self.y: A = None
        self.txt = txt

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

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

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

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

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

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

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

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

class E:
    def __init__(self, txt: str):
        self.w: C = None
        self.z: C = None
        self.p: G = None
        self.x: C = None
        self.y: A = None
        self.txt = txt

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

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

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

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

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