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

class B:
    def __init__(self, txt: str):
        self.o: J = None
        self.z: C = None
        self.t: H = None
        self.x: G = None
        self.r: C = None
        self.v: G = None
        self.s: H = None
        self.u: D = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.w: J = None
        self.z: G = None
        self.t: C = None
        self.y: I = None
        self.u: H = None
        self.q: C = None
        self.txt = txt

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

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

class G:
    def __init__(self, txt: str):
        self.p: A = None
        self.q: A = None
        self.u: B = None
        self.s: C = None
        self.y: C = None
        self.o: B = None
        self.w: H = None
        self.r: H = None
        self.x: F = None
        self.z: I = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.u: A = None
        self.o: B = None
        self.s: I = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.y: G = None
        self.r: D = None
        self.z: H = None
        self.txt = txt

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

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

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

class B:
    def __init__(self, txt: str):
        self.o: J = None
        self.z: C = None
        self.t: H = None
        self.x: G = None
        self.r: C = None
        self.v: G = None
        self.s: H = None
        self.u: D = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.w: J = None
        self.z: G = None
        self.t: C = None
        self.y: I = None
        self.u: H = None
        self.q: C = None
        self.txt = txt

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

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

class G:
    def __init__(self, txt: str):
        self.p: A = None
        self.q: A = None
        self.u: B = None
        self.s: C = None
        self.y: C = None
        self.o: B = None
        self.w: H = None
        self.r: H = None
        self.x: F = None
        self.z: I = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.u: A = None
        self.o: B = None
        self.s: I = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.y: G = None
        self.r: D = None
        self.z: H = None
        self.txt = txt

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

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

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