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

class B:
    def __init__(self, txt: str):
        self.u: F = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.v: B = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.w: F = None
        self.v: H = None
        self.s: H = None
        self.r: B = None
        self.z: F = None
        self.txt = txt

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

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

class G:
    def __init__(self, txt: str):
        self.q: H = None
        self.x: H = None
        self.p: C = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.r: G = None
        self.z: D = None
        self.o: A = None
        self.q: C = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.u: F = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.v: B = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.w: F = None
        self.v: H = None
        self.s: H = None
        self.r: B = None
        self.z: F = None
        self.txt = txt

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

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

class G:
    def __init__(self, txt: str):
        self.q: H = None
        self.x: H = None
        self.p: C = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.r: G = None
        self.z: D = None
        self.o: A = None
        self.q: C = None
        self.txt = txt

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

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