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

class B:
    def __init__(self, txt: str):
        self.w: A = None
        self.o: D = None
        self.x: F = None
        self.q: H = None
        self.txt = txt

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

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

class E:
    def __init__(self, txt: str):
        self.o: J = None
        self.s: F = None
        self.x: J = None
        self.u: I = None
        self.v: B = None
        self.r: I = None
        self.q: G = None
        self.z: G = None
        self.y: F = None
        self.p: J = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.y: B = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.r: I = None
        self.w: H = None
        self.u: A = None
        self.s: I = None
        self.t: E = None
        self.p: C = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.r: A = None
        self.o: I = None
        self.x: G = None
        self.y: F = None
        self.p: D = None
        self.t: A = None
        self.s: C = None
        self.txt = txt

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

class J:
    def __init__(self, txt: str):
        self.y: D = None
        self.p: G = None
        self.t: A = None
        self.s: G = None
        self.x: A = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.w: A = None
        self.o: D = None
        self.x: F = None
        self.q: H = None
        self.txt = txt

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

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

class E:
    def __init__(self, txt: str):
        self.o: J = None
        self.s: F = None
        self.x: J = None
        self.u: I = None
        self.v: B = None
        self.r: I = None
        self.q: G = None
        self.z: G = None
        self.y: F = None
        self.p: J = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.y: B = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.r: I = None
        self.w: H = None
        self.u: A = None
        self.s: I = None
        self.t: E = None
        self.p: C = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.r: A = None
        self.o: I = None
        self.x: G = None
        self.y: F = None
        self.p: D = None
        self.t: A = None
        self.s: C = None
        self.txt = txt

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

class J:
    def __init__(self, txt: str):
        self.y: D = None
        self.p: G = None
        self.t: A = None
        self.s: G = None
        self.x: A = None
        self.txt = txt

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

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