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

class B:
    def __init__(self, txt: str):
        self.r: G = None
        self.w: C = None
        self.t: C = None
        self.s: E = None
        self.y: A = None
        self.x: A = None
        self.z: E = None
        self.q: C = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.s: F = None
        self.x: D = None
        self.o: D = None
        self.u: H = None
        self.z: E = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.u: J = None
        self.r: C = None
        self.q: D = None
        self.w: I = None
        self.txt = txt

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

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

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

class I:
    def __init__(self, txt: str):
        self.z: B = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.t: I = None
        self.q: D = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.r: G = None
        self.w: C = None
        self.t: C = None
        self.s: E = None
        self.y: A = None
        self.x: A = None
        self.z: E = None
        self.q: C = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.s: F = None
        self.x: D = None
        self.o: D = None
        self.u: H = None
        self.z: E = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.u: J = None
        self.r: C = None
        self.q: D = None
        self.w: I = None
        self.txt = txt

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

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

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

class I:
    def __init__(self, txt: str):
        self.z: B = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.t: I = None
        self.q: D = None
        self.txt = txt

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

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