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

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

class C:
    def __init__(self, txt: str):
        self.s: H = None
        self.p: J = None
        self.t: H = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.z: H = None
        self.u: I = None
        self.x: B = None
        self.p: I = None
        self.o: G = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.w: A = None
        self.r: E = None
        self.t: G = None
        self.o: E = None
        self.s: C = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.x: B = None
        self.p: B = None
        self.y: F = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.z: I = None
        self.u: H = None
        self.o: F = None
        self.p: G = None
        self.x: H = None
        self.v: B = None
        self.txt = txt

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

n.o = h
n.v = h
n.w = g
n.u = g
n.y = e
n.r = b
n.z = m
n.p = c
l.y = b
l.z = b
l.r = c
l.o = n
l.p = m
l.v = m
l.q = m
l.w = d
m.s = c
m.t = c
m.p = k
d.o = m
d.r = m
d.y = m
d.w = k
d.z = c
d.q = e
d.p = e
d.t = l
d.s = l
d.u = g
e.o = m
e.s = l
e.x = g
e.z = b
g.z = c
g.u = h
g.p = h
g.x = l
g.o = b
b.z = l
b.s = g
c.w = n
c.r = e
c.o = e
c.t = b
c.s = m
h.x = l
h.p = l
h.y = g
k.z = h
k.u = c
k.x = c
k.o = g
k.p = b
k.v = l
assert b.z.q.s.w.w.x.o.txt == "
class A:
    def __init__(self, txt: str):
        self.o: I = None
        self.v: I = None
        self.w: F = None
        self.u: F = None
        self.y: E = None
        self.r: G = None
        self.z: C = None
        self.p: H = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.s: H = None
        self.p: J = None
        self.t: H = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.z: H = None
        self.u: I = None
        self.x: B = None
        self.p: I = None
        self.o: G = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.w: A = None
        self.r: E = None
        self.t: G = None
        self.o: E = None
        self.s: C = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.x: B = None
        self.p: B = None
        self.y: F = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.z: I = None
        self.u: H = None
        self.o: F = None
        self.p: G = None
        self.x: H = None
        self.v: B = None
        self.txt = txt

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

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