class A:
    def __init__(self, txt: str):
        self.x: B = None
        self.txt = txt

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

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

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

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

class F:
    def __init__(self, txt: str):
        self.y: H = None
        self.u: I = None
        self.x: G = None
        self.w: I = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.w: G = None
        self.txt = txt

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

class J:
    def __init__(self, txt: str):
        self.q: H = None
        self.w: E = None
        self.r: E = None
        self.p: E = None
        self.txt = txt

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

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

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

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

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

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

class F:
    def __init__(self, txt: str):
        self.y: H = None
        self.u: I = None
        self.x: G = None
        self.w: I = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.w: G = None
        self.txt = txt

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

class J:
    def __init__(self, txt: str):
        self.q: H = None
        self.w: E = None
        self.r: E = None
        self.p: E = None
        self.txt = txt

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

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