class A:
    def __init__(self, txt: str):
        self.s: E = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.w: B = None
        self.y: A = None
        self.q: H = None
        self.r: D = None
        self.s: B = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.t: J = None
        self.q: A = None
        self.w: C = None
        self.s: A = None
        self.u: F = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.q: J = None
        self.y: B = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.q: J = None
        self.u: E = None
        self.y: B = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.x: E = None
        self.u: F = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.p: F = None
        self.r: C = None
        self.y: A = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.y: E = None
        self.s: B = None
        self.t: A = None
        self.u: D = None
        self.o: D = None
        self.p: E = None
        self.z: I = None
        self.v: D = None
        self.txt = txt

g = A("g")
h = B("h")
j = C("j")
e = D("e")
i = E("i")
b = F("b")
n = G("n")
f = H("f")
d = I("d")
c = J("c")

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

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

class C:
    def __init__(self, txt: str):
        self.w: B = None
        self.y: A = None
        self.q: H = None
        self.r: D = None
        self.s: B = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.t: J = None
        self.q: A = None
        self.w: C = None
        self.s: A = None
        self.u: F = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.q: J = None
        self.y: B = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.q: J = None
        self.u: E = None
        self.y: B = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.x: E = None
        self.u: F = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.p: F = None
        self.r: C = None
        self.y: A = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.y: E = None
        self.s: B = None
        self.t: A = None
        self.u: D = None
        self.o: D = None
        self.p: E = None
        self.z: I = None
        self.v: D = None
        self.txt = txt

g = A("g")
h = B("h")
j = C("j")
e = D("e")
i = E("i")
b = F("b")
n = G("n")
f = H("f")
d = I("d")
c = J("c")

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