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

class B:
    def __init__(self, txt: str):
        self.p: H = None
        self.r: D = None
        self.z: G = None
        self.u: J = None
        self.v: F = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.w: I = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.x: J = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.u: H = None
        self.s: C = None
        self.w: H = None
        self.r: H = None
        self.q: D = None
        self.o: I = None
        self.v: D = None
        self.txt = txt

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

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

class I:
    def __init__(self, txt: str):
        self.w: J = None
        self.u: J = None
        self.o: E = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.p: E = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.p: H = None
        self.r: D = None
        self.z: G = None
        self.u: J = None
        self.v: F = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.w: I = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.x: J = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.u: H = None
        self.s: C = None
        self.w: H = None
        self.r: H = None
        self.q: D = None
        self.o: I = None
        self.v: D = None
        self.txt = txt

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

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

class I:
    def __init__(self, txt: str):
        self.w: J = None
        self.u: J = None
        self.o: E = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.p: E = None
        self.txt = txt

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

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