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

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

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

class D:
    def __init__(self, txt: str):
        self.z: H = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.z: B = None
        self.y: H = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.v: B = None
        self.z: B = None
        self.p: B = None
        self.r: F = None
        self.s: A = None
        self.t: E = None
        self.u: F = None
        self.txt = txt

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

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

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

e.o = f
e.u = g
c.o = l
c.r = a
c.s = g
i.x = c
i.q = e
i.y = e
i.s = h
a.z = l
f.z = c
f.y = l
h.w = i
h.p = f
h.t = l
h.v = c
h.s = c
d.v = c
d.z = c
d.p = c
d.r = h
d.u = h
d.s = e
d.t = f
l.v = c
l.p = c
l.u = c
l.o = d
g.x = a
assert a.z.v.s.txt == "
class A:
    def __init__(self, txt: str):
        self.o: E = None
        self.u: I = None
        self.txt = txt

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

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

class D:
    def __init__(self, txt: str):
        self.z: H = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.z: B = None
        self.y: H = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.v: B = None
        self.z: B = None
        self.p: B = None
        self.r: F = None
        self.s: A = None
        self.t: E = None
        self.u: F = None
        self.txt = txt

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

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

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

e.o = f
e.u = g
c.o = l
c.r = a
c.s = g
i.x = c
i.q = e
i.y = e
i.s = h
a.z = l
f.z = c
f.y = l
h.w = i
h.p = f
h.t = l
h.v = c
h.s = c
d.v = c
d.z = c
d.p = c
d.r = h
d.u = h
d.s = e
d.t = f
l.v = c
l.p = c
l.u = c
l.o = d
g.x = a
assert a.z.v.s.txt == "g"