class A:
    def __init__(self, txt: str):
        self.s: H = None
        self.o: J = None
        self.r: F = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.t: C = None
        self.v: D = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.x: I = None
        self.y: I = None
        self.v: H = None
        self.u: B = None
        self.o: I = None
        self.z: A = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.y: C = None
        self.s: J = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.u: H = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.y: F = None
        self.p: E = None
        self.r: I = None
        self.q: J = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.z: F = None
        self.x: F = None
        self.r: G = None
        self.q: J = None
        self.p: A = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.z: A = None
        self.y: C = None
        self.x: B = None
        self.p: A = None
        self.u: F = None
        self.q: A = None
        self.w: C = None
        self.r: I = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.t: C = None
        self.v: D = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.x: I = None
        self.y: I = None
        self.v: H = None
        self.u: B = None
        self.o: I = None
        self.z: A = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.y: C = None
        self.s: J = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.u: H = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.y: F = None
        self.p: E = None
        self.r: I = None
        self.q: J = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.z: F = None
        self.x: F = None
        self.r: G = None
        self.q: J = None
        self.p: A = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.z: A = None
        self.y: C = None
        self.x: B = None
        self.p: A = None
        self.u: F = None
        self.q: A = None
        self.w: C = None
        self.r: I = None
        self.txt = txt

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

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