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

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

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

class D:
    def __init__(self, txt: str):
        self.t: I = None
        self.q: B = None
        self.s: B = None
        self.z: F = None
        self.o: A = None
        self.txt = txt

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

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

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

class H:
    def __init__(self, txt: str):
        self.r: E = None
        self.txt = txt

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

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

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

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

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

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

class D:
    def __init__(self, txt: str):
        self.t: I = None
        self.q: B = None
        self.s: B = None
        self.z: F = None
        self.o: A = None
        self.txt = txt

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

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

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

class H:
    def __init__(self, txt: str):
        self.r: E = None
        self.txt = txt

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

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

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

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