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

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

class C:
    def __init__(self, txt: str):
        self.q: F = None
        self.o: J = None
        self.u: H = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.s: G = None
        self.r: I = None
        self.z: I = None
        self.q: E = None
        self.w: C = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.y: B = None
        self.q: F = None
        self.w: G = None
        self.p: F = None
        self.o: B = None
        self.x: A = None
        self.s: H = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.v: A = None
        self.y: D = None
        self.s: G = None
        self.o: C = None
        self.x: B = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.p: D = None
        self.w: H = None
        self.o: H = None
        self.q: D = None
        self.u: B = None
        self.s: E = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.u: D = None
        self.o: E = None
        self.y: F = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.v: F = None
        self.y: D = None
        self.txt = txt

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

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

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

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

class C:
    def __init__(self, txt: str):
        self.q: F = None
        self.o: J = None
        self.u: H = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.s: G = None
        self.r: I = None
        self.z: I = None
        self.q: E = None
        self.w: C = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.y: B = None
        self.q: F = None
        self.w: G = None
        self.p: F = None
        self.o: B = None
        self.x: A = None
        self.s: H = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.v: A = None
        self.y: D = None
        self.s: G = None
        self.o: C = None
        self.x: B = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.p: D = None
        self.w: H = None
        self.o: H = None
        self.q: D = None
        self.u: B = None
        self.s: E = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.u: D = None
        self.o: E = None
        self.y: F = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.v: F = None
        self.y: D = None
        self.txt = txt

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

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

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