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

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

class C:
    def __init__(self, txt: str):
        self.o: E = None
        self.x: G = None
        self.z: E = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.s: E = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.s: H = None
        self.z: D = None
        self.w: B = None
        self.t: E = None
        self.p: F = None
        self.txt = txt

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

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

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

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

class C:
    def __init__(self, txt: str):
        self.o: E = None
        self.x: G = None
        self.z: E = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.s: E = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.s: H = None
        self.z: D = None
        self.w: B = None
        self.t: E = None
        self.p: F = None
        self.txt = txt

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

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

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