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

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

class C:
    def __init__(self, txt: str):
        self.o: I = None
        self.t: B = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.s: H = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.v: I = None
        self.w: I = None
        self.s: C = None
        self.r: G = None
        self.u: D = None
        self.x: F = None
        self.z: I = None
        self.t: B = None
        self.txt = txt

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

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

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

class I:
    def __init__(self, txt: str):
        self.r: C = None
        self.v: C = None
        self.p: C = None
        self.txt = txt

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

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

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

class C:
    def __init__(self, txt: str):
        self.o: I = None
        self.t: B = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.s: H = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.v: I = None
        self.w: I = None
        self.s: C = None
        self.r: G = None
        self.u: D = None
        self.x: F = None
        self.z: I = None
        self.t: B = None
        self.txt = txt

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

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

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

class I:
    def __init__(self, txt: str):
        self.r: C = None
        self.v: C = None
        self.p: C = None
        self.txt = txt

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

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