class A:
    def __init__(self, txt: str):
        self.p: H = None
        self.x: H = None
        self.u: H = None
        self.q: H = None
        self.t: G = None
        self.y: H = None
        self.z: C = None
        self.txt = txt

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

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

class D:
    def __init__(self, txt: str):
        self.p: C = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.v: F = None
        self.t: D = None
        self.s: C = None
        self.u: B = None
        self.q: A = None
        self.y: C = None
        self.o: F = None
        self.z: B = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.p: C = None
        self.z: B = None
        self.t: H = None
        self.x: H = None
        self.o: B = None
        self.u: C = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.v: A = None
        self.p: G = None
        self.r: A = None
        self.y: B = None
        self.txt = txt

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

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

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

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

class D:
    def __init__(self, txt: str):
        self.p: C = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.v: F = None
        self.t: D = None
        self.s: C = None
        self.u: B = None
        self.q: A = None
        self.y: C = None
        self.o: F = None
        self.z: B = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.p: C = None
        self.z: B = None
        self.t: H = None
        self.x: H = None
        self.o: B = None
        self.u: C = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.v: A = None
        self.p: G = None
        self.r: A = None
        self.y: B = None
        self.txt = txt

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

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