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

class B:
    def __init__(self, txt: str):
        self.t: D = None
        self.p: G = None
        self.s: A = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.t: F = None
        self.z: I = None
        self.w: F = None
        self.o: E = None
        self.txt = txt

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

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

class G:
    def __init__(self, txt: str):
        self.z: D = None
        self.o: H = None
        self.y: A = None
        self.v: E = None
        self.txt = txt

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

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

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

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

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

class B:
    def __init__(self, txt: str):
        self.t: D = None
        self.p: G = None
        self.s: A = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.t: F = None
        self.z: I = None
        self.w: F = None
        self.o: E = None
        self.txt = txt

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

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

class G:
    def __init__(self, txt: str):
        self.z: D = None
        self.o: H = None
        self.y: A = None
        self.v: E = None
        self.txt = txt

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

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

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

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

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