class A:
    def __init__(self, txt: str):
        self.v: J = None
        self.u: C = None
        self.t: J = None
        self.p: G = None
        self.z: C = None
        self.w: C = None
        self.q: B = None
        self.s: G = None
        self.r: H = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.w: G = None
        self.z: A = None
        self.q: I = None
        self.o: E = None
        self.y: G = None
        self.p: J = None
        self.txt = txt

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

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

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

class F:
    def __init__(self, txt: str):
        self.w: H = None
        self.u: A = None
        self.q: D = None
        self.s: C = None
        self.y: J = None
        self.v: J = None
        self.x: A = None
        self.z: D = None
        self.t: G = None
        self.r: H = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.y: I = None
        self.w: E = None
        self.txt = txt

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

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

class J:
    def __init__(self, txt: str):
        self.y: A = None
        self.w: C = None
        self.z: A = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.w: G = None
        self.z: A = None
        self.q: I = None
        self.o: E = None
        self.y: G = None
        self.p: J = None
        self.txt = txt

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

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

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

class F:
    def __init__(self, txt: str):
        self.w: H = None
        self.u: A = None
        self.q: D = None
        self.s: C = None
        self.y: J = None
        self.v: J = None
        self.x: A = None
        self.z: D = None
        self.t: G = None
        self.r: H = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.y: I = None
        self.w: E = None
        self.txt = txt

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

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

class J:
    def __init__(self, txt: str):
        self.y: A = None
        self.w: C = None
        self.z: A = None
        self.txt = txt

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

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