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

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

class C:
    def __init__(self, txt: str):
        self.p: B = None
        self.x: D = None
        self.y: E = None
        self.s: B = None
        self.r: D = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.q: A = None
        self.o: A = None
        self.t: C = None
        self.s: D = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.x: H = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.r: A = None
        self.u: A = None
        self.txt = txt

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

j = A("j")
h = B("h")
g = C("g")
e = D("e")
l = E("l")
n = F("n")
b = G("b")
i = H("i")
k = G("k")

j.x = h
j.o = l
h.z = l
h.o = l
h.q = j
h.y = g
h.r = i
h.t = i
h.s = n
h.w = n
g.p = h
g.s = h
g.x = e
g.r = e
g.y = l
e.s = h
e.z = g
e.w = i
e.u = i
e.x = l
e.q = b
l.q = j
l.o = j
l.t = g
l.s = e
n.x = i
b.r = j
b.u = j
i.o = h
i.t = g
i.z = g
i.q = n
i.r = n
i.w = e
i.x = j
k.r = j
k.u = j
assert l.s.z.y.txt == "
class A:
    def __init__(self, txt: str):
        self.x: B = None
        self.o: E = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.p: B = None
        self.x: D = None
        self.y: E = None
        self.s: B = None
        self.r: D = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.q: A = None
        self.o: A = None
        self.t: C = None
        self.s: D = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.x: H = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.r: A = None
        self.u: A = None
        self.txt = txt

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

j = A("j")
h = B("h")
g = C("g")
e = D("e")
l = E("l")
n = F("n")
b = G("b")
i = H("i")
k = G("k")

j.x = h
j.o = l
h.z = l
h.o = l
h.q = j
h.y = g
h.r = i
h.t = i
h.s = n
h.w = n
g.p = h
g.s = h
g.x = e
g.r = e
g.y = l
e.s = h
e.z = g
e.w = i
e.u = i
e.x = l
e.q = b
l.q = j
l.o = j
l.t = g
l.s = e
n.x = i
b.r = j
b.u = j
i.o = h
i.t = g
i.z = g
i.q = n
i.r = n
i.w = e
i.x = j
k.r = j
k.u = j
assert l.s.z.y.txt == "l"