class A:
    def __init__(self, txt: str):
        self.s: D = None
        self.u: J = None
        self.v: E = None
        self.y: F = None
        self.t: J = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.w: E = None
        self.v: H = None
        self.p: F = None
        self.s: C = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.z: D = None
        self.y: D = None
        self.v: G = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.o: D = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.z: J = None
        self.q: H = None
        self.o: E = None
        self.x: I = None
        self.v: G = None
        self.y: E = None
        self.s: H = None
        self.u: H = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.y: E = None
        self.z: A = None
        self.p: H = None
        self.v: D = None
        self.u: I = None
        self.r: C = None
        self.w: D = None
        self.s: F = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.t: J = None
        self.o: D = None
        self.w: A = None
        self.s: D = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.t: E = None
        self.o: C = None
        self.v: H = None
        self.w: H = None
        self.p: F = None
        self.x: D = None
        self.q: G = None
        self.txt = txt

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

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

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

class B:
    def __init__(self, txt: str):
        self.w: E = None
        self.v: H = None
        self.p: F = None
        self.s: C = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.z: D = None
        self.y: D = None
        self.v: G = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.o: D = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.z: J = None
        self.q: H = None
        self.o: E = None
        self.x: I = None
        self.v: G = None
        self.y: E = None
        self.s: H = None
        self.u: H = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.y: E = None
        self.z: A = None
        self.p: H = None
        self.v: D = None
        self.u: I = None
        self.r: C = None
        self.w: D = None
        self.s: F = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.t: J = None
        self.o: D = None
        self.w: A = None
        self.s: D = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.t: E = None
        self.o: C = None
        self.v: H = None
        self.w: H = None
        self.p: F = None
        self.x: D = None
        self.q: G = None
        self.txt = txt

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

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

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