class A:
    def __init__(self, txt: str):
        self.y: D = None
        self.u: G = None
        self.q: D = None
        self.v: E = None
        self.s: B = None
        self.o: I = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.q: F = None
        self.z: H = None
        self.s: H = None
        self.p: D = None
        self.r: E = None
        self.u: D = None
        self.t: I = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.t: A = None
        self.v: F = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.o: I = None
        self.t: B = None
        self.q: I = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.v: E = None
        self.t: D = None
        self.q: D = None
        self.p: I = None
        self.w: E = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.z: C = None
        self.w: D = None
        self.t: A = None
        self.x: B = None
        self.v: E = None
        self.txt = txt

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

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

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

class B:
    def __init__(self, txt: str):
        self.q: F = None
        self.z: H = None
        self.s: H = None
        self.p: D = None
        self.r: E = None
        self.u: D = None
        self.t: I = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.t: A = None
        self.v: F = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.o: I = None
        self.t: B = None
        self.q: I = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.v: E = None
        self.t: D = None
        self.q: D = None
        self.p: I = None
        self.w: E = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.z: C = None
        self.w: D = None
        self.t: A = None
        self.x: B = None
        self.v: E = None
        self.txt = txt

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

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

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