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

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

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

class D:
    def __init__(self, txt: str):
        self.w: B = None
        self.v: E = None
        self.p: H = None
        self.txt = txt

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

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

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

class H:
    def __init__(self, txt: str):
        self.u: C = None
        self.x: E = None
        self.v: G = None
        self.t: D = None
        self.p: B = None
        self.s: G = None
        self.r: A = None
        self.txt = txt

j = A("j")
n = B("n")
i = C("i")
d = D("d")
m = E("m")
g = F("g")
f = G("f")
b = H("b")
a = F("a")
c = H("c")

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

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

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

class D:
    def __init__(self, txt: str):
        self.w: B = None
        self.v: E = None
        self.p: H = None
        self.txt = txt

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

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

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

class H:
    def __init__(self, txt: str):
        self.u: C = None
        self.x: E = None
        self.v: G = None
        self.t: D = None
        self.p: B = None
        self.s: G = None
        self.r: A = None
        self.txt = txt

j = A("j")
n = B("n")
i = C("i")
d = D("d")
m = E("m")
g = F("g")
f = G("f")
b = H("b")
a = F("a")
c = H("c")

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