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

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

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

class D:
    def __init__(self, txt: str):
        self.z: A = None
        self.o: B = None
        self.r: G = None
        self.w: A = None
        self.x: G = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.o: J = None
        self.r: I = None
        self.w: D = None
        self.v: H = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.p: D = None
        self.r: J = None
        self.t: H = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.u: H = None
        self.x: B = None
        self.w: E = None
        self.r: F = None
        self.z: A = None
        self.q: D = None
        self.t: B = None
        self.o: B = None
        self.s: J = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.x: B = None
        self.y: I = None
        self.t: A = None
        self.p: F = None
        self.z: J = None
        self.txt = txt

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

class J:
    def __init__(self, txt: str):
        self.x: G = None
        self.t: B = None
        self.v: B = None
        self.s: A = None
        self.u: D = None
        self.txt = txt

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

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

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

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

class D:
    def __init__(self, txt: str):
        self.z: A = None
        self.o: B = None
        self.r: G = None
        self.w: A = None
        self.x: G = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.o: J = None
        self.r: I = None
        self.w: D = None
        self.v: H = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.p: D = None
        self.r: J = None
        self.t: H = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.u: H = None
        self.x: B = None
        self.w: E = None
        self.r: F = None
        self.z: A = None
        self.q: D = None
        self.t: B = None
        self.o: B = None
        self.s: J = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.x: B = None
        self.y: I = None
        self.t: A = None
        self.p: F = None
        self.z: J = None
        self.txt = txt

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

class J:
    def __init__(self, txt: str):
        self.x: G = None
        self.t: B = None
        self.v: B = None
        self.s: A = None
        self.u: D = None
        self.txt = txt

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

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