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

class B:
    def __init__(self, txt: str):
        self.z: D = None
        self.r: E = None
        self.w: A = None
        self.s: C = None
        self.q: D = None
        self.v: G = None
        self.t: A = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.o: F = None
        self.p: E = None
        self.q: I = None
        self.y: D = None
        self.w: A = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.y: G = None
        self.r: D = None
        self.t: G = None
        self.z: D = None
        self.x: B = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.q: B = None
        self.txt = txt

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

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

class J:
    def __init__(self, txt: str):
        self.z: B = None
        self.u: E = None
        self.o: F = None
        self.r: I = None
        self.p: C = None
        self.y: G = None
        self.t: H = None
        self.v: G = None
        self.q: B = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.z: D = None
        self.r: E = None
        self.w: A = None
        self.s: C = None
        self.q: D = None
        self.v: G = None
        self.t: A = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.o: F = None
        self.p: E = None
        self.q: I = None
        self.y: D = None
        self.w: A = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.y: G = None
        self.r: D = None
        self.t: G = None
        self.z: D = None
        self.x: B = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.q: B = None
        self.txt = txt

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

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

class J:
    def __init__(self, txt: str):
        self.z: B = None
        self.u: E = None
        self.o: F = None
        self.r: I = None
        self.p: C = None
        self.y: G = None
        self.t: H = None
        self.v: G = None
        self.q: B = None
        self.txt = txt

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

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