class A:
    def __init__(self, txt: str):
        self.w: J = None
        self.s: G = None
        self.y: I = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.x: B = None
        self.t: H = None
        self.o: B = None
        self.w: J = None
        self.z: E = None
        self.s: F = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.t: B = None
        self.s: H = None
        self.x: A = None
        self.o: I = None
        self.w: I = None
        self.u: F = None
        self.p: F = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.q: H = None
        self.o: H = None
        self.x: F = None
        self.u: D = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.t: B = None
        self.w: A = None
        self.z: H = None
        self.txt = txt

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

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

j.w = b
j.s = n
j.y = d
c.u = f
m.x = c
m.o = c
m.t = f
m.w = b
m.z = a
m.s = l
k.o = c
k.t = f
k.r = j
k.z = n
a.t = c
a.s = f
a.x = j
a.o = d
a.w = d
a.u = l
a.p = l
l.u = m
l.s = b
l.z = n
l.o = a
l.q = a
l.w = k
l.x = c
l.y = d
n.q = f
n.o = f
n.x = l
n.u = k
f.s = j
d.t = c
d.w = j
d.z = f
b.u = j
b.t = f
assert k.t.s.w.t.s.y.t.u.s.txt == "
class A:
    def __init__(self, txt: str):
        self.w: J = None
        self.s: G = None
        self.y: I = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.x: B = None
        self.t: H = None
        self.o: B = None
        self.w: J = None
        self.z: E = None
        self.s: F = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.t: B = None
        self.s: H = None
        self.x: A = None
        self.o: I = None
        self.w: I = None
        self.u: F = None
        self.p: F = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.q: H = None
        self.o: H = None
        self.x: F = None
        self.u: D = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.t: B = None
        self.w: A = None
        self.z: H = None
        self.txt = txt

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

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

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