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

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

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

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

class E:
    def __init__(self, txt: str):
        self.z: J = None
        self.x: F = None
        self.p: C = None
        self.o: J = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.p: C = None
        self.r: D = None
        self.y: E = None
        self.w: A = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.p: D = None
        self.v: C = None
        self.s: A = None
        self.o: I = None
        self.y: B = None
        self.q: J = None
        self.txt = txt

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

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

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

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

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

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

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

class E:
    def __init__(self, txt: str):
        self.z: J = None
        self.x: F = None
        self.p: C = None
        self.o: J = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.p: C = None
        self.r: D = None
        self.y: E = None
        self.w: A = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.p: D = None
        self.v: C = None
        self.s: A = None
        self.o: I = None
        self.y: B = None
        self.q: J = None
        self.txt = txt

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

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

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

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