class A:
    def __init__(self, txt: str):
        self.t: B = None
        self.s: J = None
        self.r: E = None
        self.x: G = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.u: A = None
        self.p: G = None
        self.x: D = None
        self.q: G = None
        self.r: G = None
        self.v: D = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.v: J = None
        self.z: J = None
        self.o: I = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.r: D = None
        self.o: A = None
        self.q: A = None
        self.p: B = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.z: I = None
        self.t: A = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.s: J = None
        self.t: D = None
        self.w: H = None
        self.z: F = None
        self.r: B = None
        self.v: B = None
        self.o: J = None
        self.u: D = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.s: C = None
        self.w: C = None
        self.r: C = None
        self.o: C = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.u: A = None
        self.p: G = None
        self.x: D = None
        self.q: G = None
        self.r: G = None
        self.v: D = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.v: J = None
        self.z: J = None
        self.o: I = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.r: D = None
        self.o: A = None
        self.q: A = None
        self.p: B = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.z: I = None
        self.t: A = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.s: J = None
        self.t: D = None
        self.w: H = None
        self.z: F = None
        self.r: B = None
        self.v: B = None
        self.o: J = None
        self.u: D = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.s: C = None
        self.w: C = None
        self.r: C = None
        self.o: C = None
        self.txt = txt

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

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