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

class B:
    def __init__(self, txt: str):
        self.t: I = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.p: F = None
        self.s: B = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.r: F = None
        self.s: G = None
        self.v: I = None
        self.x: A = None
        self.o: B = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.u: C = None
        self.o: G = None
        self.y: J = None
        self.x: B = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.p: I = None
        self.w: H = None
        self.y: D = None
        self.t: B = None
        self.r: B = None
        self.x: I = None
        self.q: B = None
        self.z: J = None
        self.u: H = None
        self.s: D = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.z: F = None
        self.u: D = None
        self.y: F = None
        self.w: D = None
        self.txt = txt

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

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

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

class B:
    def __init__(self, txt: str):
        self.t: I = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.p: F = None
        self.s: B = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.r: F = None
        self.s: G = None
        self.v: I = None
        self.x: A = None
        self.o: B = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.u: C = None
        self.o: G = None
        self.y: J = None
        self.x: B = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.p: I = None
        self.w: H = None
        self.y: D = None
        self.t: B = None
        self.r: B = None
        self.x: I = None
        self.q: B = None
        self.z: J = None
        self.u: H = None
        self.s: D = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.z: F = None
        self.u: D = None
        self.y: F = None
        self.w: D = None
        self.txt = txt

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

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

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