class A:
    def __init__(self, txt: str):
        self.x: C = None
        self.w: J = None
        self.s: E = None
        self.u: H = None
        self.r: D = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.q: J = None
        self.txt = txt

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

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

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

class G:
    def __init__(self, txt: str):
        self.x: J = None
        self.v: F = None
        self.y: H = None
        self.t: J = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.p: C = None
        self.u: H = None
        self.txt = txt

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

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

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

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

class C:
    def __init__(self, txt: str):
        self.q: J = None
        self.txt = txt

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

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

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

class G:
    def __init__(self, txt: str):
        self.x: J = None
        self.v: F = None
        self.y: H = None
        self.t: J = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.p: C = None
        self.u: H = None
        self.txt = txt

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

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

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