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

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

class C:
    def __init__(self, txt: str):
        self.z: A = None
        self.t: D = None
        self.y: E = None
        self.w: I = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.o: F = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.o: J = None
        self.v: G = None
        self.t: E = None
        self.p: A = None
        self.q: H = None
        self.txt = txt

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

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

class I:
    def __init__(self, txt: str):
        self.v: G = None
        self.s: J = None
        self.r: D = None
        self.p: A = None
        self.y: E = None
        self.txt = txt

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

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

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

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

class C:
    def __init__(self, txt: str):
        self.z: A = None
        self.t: D = None
        self.y: E = None
        self.w: I = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.o: F = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.o: J = None
        self.v: G = None
        self.t: E = None
        self.p: A = None
        self.q: H = None
        self.txt = txt

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

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

class I:
    def __init__(self, txt: str):
        self.v: G = None
        self.s: J = None
        self.r: D = None
        self.p: A = None
        self.y: E = None
        self.txt = txt

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

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

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