class A:
    def __init__(self, txt: str):
        self.v: H = None
        self.z: H = None
        self.t: F = None
        self.o: F = None
        self.r: J = None
        self.y: J = None
        self.q: C = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.z: F = None
        self.p: H = None
        self.w: A = None
        self.o: G = None
        self.q: D = None
        self.s: H = None
        self.t: D = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.s: I = None
        self.p: H = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.s: H = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.v: C = None
        self.w: C = None
        self.u: A = None
        self.p: C = None
        self.r: D = None
        self.t: C = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.r: H = None
        self.w: B = None
        self.z: A = None
        self.y: J = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.p: C = None
        self.u: F = None
        self.txt = txt

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

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

class J:
    def __init__(self, txt: str):
        self.s: G = None
        self.t: A = None
        self.o: I = None
        self.q: I = None
        self.x: F = None
        self.r: H = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.z: F = None
        self.p: H = None
        self.w: A = None
        self.o: G = None
        self.q: D = None
        self.s: H = None
        self.t: D = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.s: I = None
        self.p: H = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.s: H = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.v: C = None
        self.w: C = None
        self.u: A = None
        self.p: C = None
        self.r: D = None
        self.t: C = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.r: H = None
        self.w: B = None
        self.z: A = None
        self.y: J = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.p: C = None
        self.u: F = None
        self.txt = txt

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

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

class J:
    def __init__(self, txt: str):
        self.s: G = None
        self.t: A = None
        self.o: I = None
        self.q: I = None
        self.x: F = None
        self.r: H = None
        self.txt = txt

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

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