class A:
    def __init__(self, txt: str):
        self.p: B = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.v: C = None
        self.t: J = None
        self.w: C = None
        self.r: D = None
        self.o: D = None
        self.q: I = None
        self.s: C = None
        self.txt = txt

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

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

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

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

class G:
    def __init__(self, txt: str):
        self.w: B = None
        self.o: A = None
        self.x: B = None
        self.p: J = None
        self.txt = txt

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

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

class J:
    def __init__(self, txt: str):
        self.s: C = None
        self.u: I = None
        self.x: B = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.v: C = None
        self.t: J = None
        self.w: C = None
        self.r: D = None
        self.o: D = None
        self.q: I = None
        self.s: C = None
        self.txt = txt

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

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

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

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

class G:
    def __init__(self, txt: str):
        self.w: B = None
        self.o: A = None
        self.x: B = None
        self.p: J = None
        self.txt = txt

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

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

class J:
    def __init__(self, txt: str):
        self.s: C = None
        self.u: I = None
        self.x: B = None
        self.txt = txt

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

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