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

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

class C:
    def __init__(self, txt: str):
        self.q: F = None
        self.y: F = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.s: H = None
        self.y: C = None
        self.txt = txt

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

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

class H:
    def __init__(self, txt: str):
        self.r: D = None
        self.w: D = None
        self.s: E = None
        self.x: C = None
        self.txt = txt

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

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

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

class C:
    def __init__(self, txt: str):
        self.q: F = None
        self.y: F = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.s: H = None
        self.y: C = None
        self.txt = txt

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

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

class H:
    def __init__(self, txt: str):
        self.r: D = None
        self.w: D = None
        self.s: E = None
        self.x: C = None
        self.txt = txt

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

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