class A:
    def __init__(self, txt: str):
        self.r: B = None
        self.q: I = None
        self.w: J = None
        self.z: E = None
        self.s: D = None
        self.p: C = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.y: A = None
        self.x: F = None
        self.w: J = None
        self.t: G = None
        self.v: J = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.w: F = None
        self.q: G = None
        self.y: H = None
        self.u: G = None
        self.s: G = None
        self.x: J = None
        self.v: I = None
        self.r: G = None
        self.o: B = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.w: I = None
        self.z: E = None
        self.r: E = None
        self.p: J = None
        self.t: G = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.y: F = None
        self.o: E = None
        self.q: J = None
        self.w: J = None
        self.z: B = None
        self.u: I = None
        self.p: I = None
        self.v: E = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.z: F = None
        self.w: C = None
        self.t: B = None
        self.v: H = None
        self.p: J = None
        self.x: B = None
        self.s: H = None
        self.q: J = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.u: A = None
        self.z: C = None
        self.txt = txt

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

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

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

class C:
    def __init__(self, txt: str):
        self.y: A = None
        self.x: F = None
        self.w: J = None
        self.t: G = None
        self.v: J = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.w: F = None
        self.q: G = None
        self.y: H = None
        self.u: G = None
        self.s: G = None
        self.x: J = None
        self.v: I = None
        self.r: G = None
        self.o: B = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.w: I = None
        self.z: E = None
        self.r: E = None
        self.p: J = None
        self.t: G = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.y: F = None
        self.o: E = None
        self.q: J = None
        self.w: J = None
        self.z: B = None
        self.u: I = None
        self.p: I = None
        self.v: E = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.z: F = None
        self.w: C = None
        self.t: B = None
        self.v: H = None
        self.p: J = None
        self.x: B = None
        self.s: H = None
        self.q: J = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.u: A = None
        self.z: C = None
        self.txt = txt

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

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