class A:
    def __init__(self, txt: str):
        self.s: J = None
        self.v: D = None
        self.r: J = None
        self.x: I = None
        self.q: B = None
        self.o: I = None
        self.p: B = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.y: F = None
        self.u: I = None
        self.t: H = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.s: J = None
        self.y: B = None
        self.w: B = None
        self.v: D = None
        self.u: B = None
        self.p: G = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.v: J = None
        self.r: A = None
        self.w: I = None
        self.z: G = None
        self.t: J = None
        self.u: G = None
        self.s: J = None
        self.q: H = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.o: B = None
        self.p: H = None
        self.z: D = None
        self.x: J = None
        self.y: F = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.w: D = None
        self.t: G = None
        self.z: J = None
        self.v: J = None
        self.q: F = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.z: G = None
        self.t: A = None
        self.txt = txt

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

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

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

class B:
    def __init__(self, txt: str):
        self.y: F = None
        self.u: I = None
        self.t: H = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.s: J = None
        self.y: B = None
        self.w: B = None
        self.v: D = None
        self.u: B = None
        self.p: G = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.v: J = None
        self.r: A = None
        self.w: I = None
        self.z: G = None
        self.t: J = None
        self.u: G = None
        self.s: J = None
        self.q: H = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.o: B = None
        self.p: H = None
        self.z: D = None
        self.x: J = None
        self.y: F = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.w: D = None
        self.t: G = None
        self.z: J = None
        self.v: J = None
        self.q: F = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.z: G = None
        self.t: A = None
        self.txt = txt

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

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

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