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

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

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

class D:
    def __init__(self, txt: str):
        self.y: E = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.q: C = None
        self.w: I = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.o: I = None
        self.r: B = None
        self.v: H = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.x: E = None
        self.s: D = None
        self.z: A = None
        self.t: I = None
        self.w: D = None
        self.u: A = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.u: A = None
        self.s: B = None
        self.q: C = None
        self.o: B = None
        self.v: C = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.w: F = None
        self.q: H = None
        self.p: D = None
        self.txt = txt

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

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

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

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

class D:
    def __init__(self, txt: str):
        self.y: E = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.q: C = None
        self.w: I = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.o: I = None
        self.r: B = None
        self.v: H = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.x: E = None
        self.s: D = None
        self.z: A = None
        self.t: I = None
        self.w: D = None
        self.u: A = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.u: A = None
        self.s: B = None
        self.q: C = None
        self.o: B = None
        self.v: C = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.w: F = None
        self.q: H = None
        self.p: D = None
        self.txt = txt

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

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