class A:
    def __init__(self, txt: str):
        self.q: C = None
        self.t: G = None
        self.r: E = None
        self.u: H = None
        self.x: D = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.u: C = None
        self.x: I = None
        self.z: F = None
        self.t: A = None
        self.w: G = None
        self.v: G = None
        self.q: G = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.o: E = None
        self.v: I = None
        self.u: B = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.s: A = None
        self.txt = txt

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

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

class H:
    def __init__(self, txt: str):
        self.z: I = None
        self.w: D = None
        self.u: D = None
        self.r: C = None
        self.p: B = None
        self.v: A = None
        self.t: I = None
        self.s: E = None
        self.x: E = None
        self.txt = txt

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

class J:
    def __init__(self, txt: str):
        self.u: E = None
        self.s: F = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.u: C = None
        self.x: I = None
        self.z: F = None
        self.t: A = None
        self.w: G = None
        self.v: G = None
        self.q: G = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.o: E = None
        self.v: I = None
        self.u: B = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.s: A = None
        self.txt = txt

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

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

class H:
    def __init__(self, txt: str):
        self.z: I = None
        self.w: D = None
        self.u: D = None
        self.r: C = None
        self.p: B = None
        self.v: A = None
        self.t: I = None
        self.s: E = None
        self.x: E = None
        self.txt = txt

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

class J:
    def __init__(self, txt: str):
        self.u: E = None
        self.s: F = None
        self.txt = txt

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

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