class A:
    def __init__(self, txt: str):
        self.s: D = None
        self.o: G = None
        self.v: F = None
        self.u: J = None
        self.z: G = None
        self.y: D = None
        self.txt = txt

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

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

class D:
    def __init__(self, txt: str):
        self.s: H = None
        self.w: H = None
        self.p: I = None
        self.x: E = None
        self.txt = txt

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

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

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

class H:
    def __init__(self, txt: str):
        self.p: I = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.z: G = None
        self.u: E = None
        self.y: H = None
        self.t: J = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.y: H = None
        self.v: D = None
        self.p: H = None
        self.u: D = None
        self.txt = txt

j = A("j")
i = B("i")
h = C("h")
l = D("l")
m = E("m")
d = F("d")
g = G("g")
k = H("k")
b = I("b")
n = J("n")

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

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

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

class D:
    def __init__(self, txt: str):
        self.s: H = None
        self.w: H = None
        self.p: I = None
        self.x: E = None
        self.txt = txt

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

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

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

class H:
    def __init__(self, txt: str):
        self.p: I = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.z: G = None
        self.u: E = None
        self.y: H = None
        self.t: J = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.y: H = None
        self.v: D = None
        self.p: H = None
        self.u: D = None
        self.txt = txt

j = A("j")
i = B("i")
h = C("h")
l = D("l")
m = E("m")
d = F("d")
g = G("g")
k = H("k")
b = I("b")
n = J("n")

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