class A:
    def __init__(self, txt: str):
        self.s: J = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.q: D = None
        self.r: F = None
        self.z: C = None
        self.v: J = None
        self.w: H = None
        self.o: E = None
        self.p: H = None
        self.u: A = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.u: H = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.q: B = None
        self.u: I = None
        self.y: H = None
        self.t: H = None
        self.w: A = None
        self.z: E = None
        self.txt = txt

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

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

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

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

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

class J:
    def __init__(self, txt: str):
        self.w: I = None
        self.y: G = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.q: D = None
        self.r: F = None
        self.z: C = None
        self.v: J = None
        self.w: H = None
        self.o: E = None
        self.p: H = None
        self.u: A = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.u: H = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.q: B = None
        self.u: I = None
        self.y: H = None
        self.t: H = None
        self.w: A = None
        self.z: E = None
        self.txt = txt

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

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

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

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

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

class J:
    def __init__(self, txt: str):
        self.w: I = None
        self.y: G = None
        self.txt = txt

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

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