class A:
    def __init__(self, txt: str):
        self.v: C = None
        self.u: E = None
        self.y: C = None
        self.r: J = None
        self.w: D = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.u: D = None
        self.q: E = None
        self.s: E = None
        self.v: H = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.o: E = None
        self.p: B = None
        self.z: J = None
        self.x: B = None
        self.r: I = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.x: H = None
        self.t: J = None
        self.u: A = None
        self.txt = txt

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

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

class H:
    def __init__(self, txt: str):
        self.x: B = None
        self.q: I = None
        self.o: C = None
        self.w: E = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.q: D = None
        self.o: J = None
        self.p: J = None
        self.v: J = None
        self.w: J = None
        self.u: G = None
        self.s: F = None
        self.txt = txt

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

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

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

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

class C:
    def __init__(self, txt: str):
        self.u: D = None
        self.q: E = None
        self.s: E = None
        self.v: H = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.o: E = None
        self.p: B = None
        self.z: J = None
        self.x: B = None
        self.r: I = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.x: H = None
        self.t: J = None
        self.u: A = None
        self.txt = txt

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

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

class H:
    def __init__(self, txt: str):
        self.x: B = None
        self.q: I = None
        self.o: C = None
        self.w: E = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.q: D = None
        self.o: J = None
        self.p: J = None
        self.v: J = None
        self.w: J = None
        self.u: G = None
        self.s: F = None
        self.txt = txt

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

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

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