class A:
    def __init__(self, txt: str):
        self.o: G = None
        self.r: C = None
        self.s: C = None
        self.z: C = None
        self.t: H = None
        self.x: D = None
        self.y: D = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.p: G = None
        self.u: E = None
        self.s: F = None
        self.w: D = None
        self.r: C = None
        self.txt = txt

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

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

class E:
    def __init__(self, txt: str):
        self.u: H = None
        self.r: A = None
        self.v: D = None
        self.w: H = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.x: D = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.s: D = None
        self.r: E = None
        self.y: B = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.x: F = None
        self.q: E = None
        self.u: B = None
        self.w: B = None
        self.txt = txt

d = A("d")
j = B("j")
m = C("m")
f = D("f")
l = E("l")
a = F("a")
n = G("n")
e = H("e")

d.o = n
d.r = m
d.s = m
d.z = m
d.t = e
d.x = f
d.y = f
j.p = n
j.u = l
j.s = a
j.w = f
j.r = m
m.o = l
m.v = n
m.w = j
f.w = n
f.q = m
f.p = j
f.u = j
f.s = l
l.u = e
l.w = e
l.r = d
l.v = f
a.x = f
n.s = f
n.r = l
n.y = j
e.x = a
e.q = l
e.u = j
e.w = j
assert l.v.s.v.w.txt == "
class A:
    def __init__(self, txt: str):
        self.o: G = None
        self.r: C = None
        self.s: C = None
        self.z: C = None
        self.t: H = None
        self.x: D = None
        self.y: D = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.p: G = None
        self.u: E = None
        self.s: F = None
        self.w: D = None
        self.r: C = None
        self.txt = txt

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

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

class E:
    def __init__(self, txt: str):
        self.u: H = None
        self.r: A = None
        self.v: D = None
        self.w: H = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.x: D = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.s: D = None
        self.r: E = None
        self.y: B = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.x: F = None
        self.q: E = None
        self.u: B = None
        self.w: B = None
        self.txt = txt

d = A("d")
j = B("j")
m = C("m")
f = D("f")
l = E("l")
a = F("a")
n = G("n")
e = H("e")

d.o = n
d.r = m
d.s = m
d.z = m
d.t = e
d.x = f
d.y = f
j.p = n
j.u = l
j.s = a
j.w = f
j.r = m
m.o = l
m.v = n
m.w = j
f.w = n
f.q = m
f.p = j
f.u = j
f.s = l
l.u = e
l.w = e
l.r = d
l.v = f
a.x = f
n.s = f
n.r = l
n.y = j
e.x = a
e.q = l
e.u = j
e.w = j
assert l.v.s.v.w.txt == "n"