class A:
    def __init__(self, txt: str):
        self.r: D = None
        self.s: F = None
        self.t: G = None
        self.u: J = None
        self.p: F = None
        self.x: G = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.s: G = None
        self.o: H = None
        self.u: G = None
        self.p: E = None
        self.r: C = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.t: I = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.y: J = None
        self.s: D = None
        self.z: A = None
        self.r: I = None
        self.q: H = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.r: B = None
        self.t: D = None
        self.y: H = None
        self.q: I = None
        self.x: I = None
        self.v: F = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.s: A = None
        self.o: D = None
        self.z: E = None
        self.t: F = None
        self.x: A = None
        self.w: D = None
        self.y: J = None
        self.u: J = None
        self.txt = txt

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

class J:
    def __init__(self, txt: str):
        self.s: A = None
        self.v: C = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.s: G = None
        self.o: H = None
        self.u: G = None
        self.p: E = None
        self.r: C = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.t: I = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.y: J = None
        self.s: D = None
        self.z: A = None
        self.r: I = None
        self.q: H = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.r: B = None
        self.t: D = None
        self.y: H = None
        self.q: I = None
        self.x: I = None
        self.v: F = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.s: A = None
        self.o: D = None
        self.z: E = None
        self.t: F = None
        self.x: A = None
        self.w: D = None
        self.y: J = None
        self.u: J = None
        self.txt = txt

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

class J:
    def __init__(self, txt: str):
        self.s: A = None
        self.v: C = None
        self.txt = txt

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

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