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

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

class C:
    def __init__(self, txt: str):
        self.w: A = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.y: A = None
        self.txt = txt

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

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

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

class H:
    def __init__(self, txt: str):
        self.o: E = None
        self.z: B = None
        self.y: E = None
        self.w: A = None
        self.v: I = None
        self.q: F = None
        self.x: C = None
        self.txt = txt

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

class J:
    def __init__(self, txt: str):
        self.q: G = None
        self.z: A = None
        self.y: H = None
        self.x: B = None
        self.txt = txt

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

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

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

class C:
    def __init__(self, txt: str):
        self.w: A = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.y: A = None
        self.txt = txt

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

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

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

class H:
    def __init__(self, txt: str):
        self.o: E = None
        self.z: B = None
        self.y: E = None
        self.w: A = None
        self.v: I = None
        self.q: F = None
        self.x: C = None
        self.txt = txt

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

class J:
    def __init__(self, txt: str):
        self.q: G = None
        self.z: A = None
        self.y: H = None
        self.x: B = None
        self.txt = txt

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

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