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

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

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

class D:
    def __init__(self, txt: str):
        self.x: B = None
        self.z: A = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.w: D = None
        self.r: G = None
        self.u: H = None
        self.o: G = None
        self.txt = txt

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

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

class H:
    def __init__(self, txt: str):
        self.x: G = None
        self.o: B = None
        self.w: G = None
        self.p: G = None
        self.r: D = None
        self.t: F = None
        self.u: C = None
        self.y: A = None
        self.v: D = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.x: A = None
        self.w: A = None
        self.q: G = None
        self.o: H = None
        self.u: C = None
        self.txt = txt

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

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

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

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

class D:
    def __init__(self, txt: str):
        self.x: B = None
        self.z: A = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.w: D = None
        self.r: G = None
        self.u: H = None
        self.o: G = None
        self.txt = txt

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

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

class H:
    def __init__(self, txt: str):
        self.x: G = None
        self.o: B = None
        self.w: G = None
        self.p: G = None
        self.r: D = None
        self.t: F = None
        self.u: C = None
        self.y: A = None
        self.v: D = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.x: A = None
        self.w: A = None
        self.q: G = None
        self.o: H = None
        self.u: C = None
        self.txt = txt

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

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