class A:
    def __init__(self, txt: str):
        self.s: C = None
        self.p: D = None
        self.z: D = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.s: D = None
        self.w: J = None
        self.x: A = None
        self.t: G = None
        self.y: C = None
        self.txt = txt

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

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

class E:
    def __init__(self, txt: str):
        self.q: A = None
        self.r: C = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.s: E = None
        self.x: A = None
        self.r: D = None
        self.y: C = None
        self.q: F = None
        self.o: E = None
        self.p: C = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.t: F = None
        self.r: J = None
        self.o: B = None
        self.p: F = None
        self.w: J = None
        self.q: F = None
        self.y: G = None
        self.x: B = None
        self.s: G = None
        self.txt = txt

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

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

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

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

class B:
    def __init__(self, txt: str):
        self.s: D = None
        self.w: J = None
        self.x: A = None
        self.t: G = None
        self.y: C = None
        self.txt = txt

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

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

class E:
    def __init__(self, txt: str):
        self.q: A = None
        self.r: C = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.s: E = None
        self.x: A = None
        self.r: D = None
        self.y: C = None
        self.q: F = None
        self.o: E = None
        self.p: C = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.t: F = None
        self.r: J = None
        self.o: B = None
        self.p: F = None
        self.w: J = None
        self.q: F = None
        self.y: G = None
        self.x: B = None
        self.s: G = None
        self.txt = txt

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

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

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

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