class A:
    def __init__(self, txt: str):
        self.r: F = None
        self.w: G = None
        self.txt = txt

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

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

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

class E:
    def __init__(self, txt: str):
        self.s: A = None
        self.w: D = None
        self.txt = txt

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

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

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

class I:
    def __init__(self, txt: str):
        self.z: G = None
        self.s: D = None
        self.txt = txt

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

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

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

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

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

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

class E:
    def __init__(self, txt: str):
        self.s: A = None
        self.w: D = None
        self.txt = txt

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

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

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

class I:
    def __init__(self, txt: str):
        self.z: G = None
        self.s: D = None
        self.txt = txt

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

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

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