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

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

class C:
    def __init__(self, txt: str):
        self.y: F = None
        self.z: A = None
        self.v: G = None
        self.q: F = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.o: A = None
        self.v: H = None
        self.r: C = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.p: E = None
        self.y: E = None
        self.q: I = None
        self.s: E = None
        self.u: C = None
        self.t: D = None
        self.z: D = None
        self.v: E = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.p: I = None
        self.o: B = None
        self.q: H = None
        self.s: A = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.u: D = None
        self.t: F = None
        self.z: C = None
        self.txt = txt

g = A("g")
c = B("c")
m = C("m")
a = D("a")
k = E("k")
i = F("i")
e = G("e")
b = H("b")
l = I("l")

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

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

class C:
    def __init__(self, txt: str):
        self.y: F = None
        self.z: A = None
        self.v: G = None
        self.q: F = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.o: A = None
        self.v: H = None
        self.r: C = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.p: E = None
        self.y: E = None
        self.q: I = None
        self.s: E = None
        self.u: C = None
        self.t: D = None
        self.z: D = None
        self.v: E = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.p: I = None
        self.o: B = None
        self.q: H = None
        self.s: A = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.u: D = None
        self.t: F = None
        self.z: C = None
        self.txt = txt

g = A("g")
c = B("c")
m = C("m")
a = D("a")
k = E("k")
i = F("i")
e = G("e")
b = H("b")
l = I("l")

g.v = k
g.t = k
g.o = l
c.t = l
c.y = k
m.y = i
m.q = i
m.z = g
m.v = e
a.r = l
k.o = g
k.v = b
k.r = m
i.p = k
i.y = k
i.s = k
i.v = k
i.q = l
i.u = m
i.t = a
i.z = a
e.p = l
e.o = c
e.q = b
e.s = g
b.z = m
l.u = a
l.t = i
l.z = m
assert e.q.z.v.s.o.t.z.txt == "a"