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

class B:
    def __init__(self, txt: str):
        self.t: G = None
        self.r: C = None
        self.u: J = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.t: B = None
        self.w: J = None
        self.r: C = None
        self.y: I = None
        self.o: J = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.r: C = None
        self.x: D = None
        self.y: I = None
        self.s: B = None
        self.u: H = None
        self.q: F = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.s: B = None
        self.w: A = None
        self.z: C = None
        self.u: A = None
        self.txt = txt

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

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

class J:
    def __init__(self, txt: str):
        self.x: H = None
        self.u: C = None
        self.t: G = None
        self.r: H = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.t: G = None
        self.r: C = None
        self.u: J = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.t: B = None
        self.w: J = None
        self.r: C = None
        self.y: I = None
        self.o: J = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.r: C = None
        self.x: D = None
        self.y: I = None
        self.s: B = None
        self.u: H = None
        self.q: F = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.s: B = None
        self.w: A = None
        self.z: C = None
        self.u: A = None
        self.txt = txt

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

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

class J:
    def __init__(self, txt: str):
        self.x: H = None
        self.u: C = None
        self.t: G = None
        self.r: H = None
        self.txt = txt

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

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