class A:
    def __init__(self, txt: str):
        self.t: F = None
        self.y: J = None
        self.s: H = None
        self.q: C = None
        self.w: H = None
        self.p: G = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.v: H = None
        self.u: E = None
        self.z: B = None
        self.x: B = None
        self.s: J = None
        self.p: B = None
        self.txt = txt

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

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

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

class G:
    def __init__(self, txt: str):
        self.x: I = None
        self.o: D = None
        self.y: E = None
        self.q: I = None
        self.r: F = None
        self.txt = txt

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

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

class J:
    def __init__(self, txt: str):
        self.x: D = None
        self.u: D = None
        self.s: F = None
        self.txt = txt

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

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

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

class C:
    def __init__(self, txt: str):
        self.v: H = None
        self.u: E = None
        self.z: B = None
        self.x: B = None
        self.s: J = None
        self.p: B = None
        self.txt = txt

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

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

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

class G:
    def __init__(self, txt: str):
        self.x: I = None
        self.o: D = None
        self.y: E = None
        self.q: I = None
        self.r: F = None
        self.txt = txt

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

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

class J:
    def __init__(self, txt: str):
        self.x: D = None
        self.u: D = None
        self.s: F = None
        self.txt = txt

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

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