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

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

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

class D:
    def __init__(self, txt: str):
        self.q: C = None
        self.r: F = None
        self.y: C = None
        self.v: F = None
        self.x: G = None
        self.o: G = None
        self.w: G = None
        self.t: H = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.s: H = None
        self.x: D = None
        self.o: A = None
        self.q: F = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.u: D = None
        self.txt = txt

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

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

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

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

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

class D:
    def __init__(self, txt: str):
        self.q: C = None
        self.r: F = None
        self.y: C = None
        self.v: F = None
        self.x: G = None
        self.o: G = None
        self.w: G = None
        self.t: H = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.s: H = None
        self.x: D = None
        self.o: A = None
        self.q: F = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.u: D = None
        self.txt = txt

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

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

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