class A:
    def __init__(self, txt: str):
        self.u: C = None
        self.w: B = None
        self.z: F = None
        self.x: B = None
        self.q: I = None
        self.t: E = None
        self.txt = txt

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

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

class D:
    def __init__(self, txt: str):
        self.q: H = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.t: C = None
        self.w: B = None
        self.x: G = None
        self.r: I = None
        self.q: H = None
        self.p: E = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.s: J = None
        self.txt = txt

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

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

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

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

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

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

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

class D:
    def __init__(self, txt: str):
        self.q: H = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.t: C = None
        self.w: B = None
        self.x: G = None
        self.r: I = None
        self.q: H = None
        self.p: E = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.s: J = None
        self.txt = txt

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

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

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

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

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