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

class B:
    def __init__(self, txt: str):
        self.s: G = None
        self.r: F = None
        self.y: A = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.t: E = None
        self.v: C = None
        self.r: G = None
        self.s: J = None
        self.q: F = None
        self.x: J = None
        self.z: B = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.u: I = None
        self.q: D = None
        self.x: G = None
        self.w: J = None
        self.y: H = None
        self.t: B = None
        self.txt = txt

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

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

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

class J:
    def __init__(self, txt: str):
        self.y: H = None
        self.o: H = None
        self.u: I = None
        self.p: F = None
        self.w: D = None
        self.v: D = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.s: G = None
        self.r: F = None
        self.y: A = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.t: E = None
        self.v: C = None
        self.r: G = None
        self.s: J = None
        self.q: F = None
        self.x: J = None
        self.z: B = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.u: I = None
        self.q: D = None
        self.x: G = None
        self.w: J = None
        self.y: H = None
        self.t: B = None
        self.txt = txt

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

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

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

class J:
    def __init__(self, txt: str):
        self.y: H = None
        self.o: H = None
        self.u: I = None
        self.p: F = None
        self.w: D = None
        self.v: D = None
        self.txt = txt

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

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