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

class B:
    def __init__(self, txt: str):
        self.p: D = None
        self.u: H = None
        self.w: H = None
        self.t: D = None
        self.q: F = None
        self.v: G = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.o: G = None
        self.t: I = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.p: B = None
        self.y: I = None
        self.s: F = None
        self.o: B = None
        self.q: B = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.o: F = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.o: G = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.x: G = None
        self.txt = txt

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

l.v = d
l.s = n
l.u = h
l.q = h
l.o = e
l.x = i
h.p = a
h.t = a
h.u = c
h.w = c
h.q = n
h.v = k
e.y = n
e.s = n
a.o = k
a.t = i
d.p = h
d.o = h
d.q = h
d.y = i
d.s = n
n.v = i
n.u = k
k.o = n
c.o = k
i.x = k
assert l.s.v.x.o.txt == "
class A:
    def __init__(self, txt: str):
        self.v: E = None
        self.s: F = None
        self.u: B = None
        self.q: B = None
        self.o: C = None
        self.x: I = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.p: D = None
        self.u: H = None
        self.w: H = None
        self.t: D = None
        self.q: F = None
        self.v: G = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.o: G = None
        self.t: I = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.p: B = None
        self.y: I = None
        self.s: F = None
        self.o: B = None
        self.q: B = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.o: F = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.o: G = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.x: G = None
        self.txt = txt

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

l.v = d
l.s = n
l.u = h
l.q = h
l.o = e
l.x = i
h.p = a
h.t = a
h.u = c
h.w = c
h.q = n
h.v = k
e.y = n
e.s = n
a.o = k
a.t = i
d.p = h
d.o = h
d.q = h
d.y = i
d.s = n
n.v = i
n.u = k
k.o = n
c.o = k
i.x = k
assert l.s.v.x.o.txt == "n"