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

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

class C:
    def __init__(self, txt: str):
        self.t: A = None
        self.z: A = None
        self.v: B = None
        self.y: C = None
        self.q: F = None
        self.u: G = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.y: D = None
        self.p: D = None
        self.s: C = None
        self.r: C = None
        self.w: C = None
        self.x: A = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.q: E = None
        self.txt = txt

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

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

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

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

class C:
    def __init__(self, txt: str):
        self.t: A = None
        self.z: A = None
        self.v: B = None
        self.y: C = None
        self.q: F = None
        self.u: G = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.y: D = None
        self.p: D = None
        self.s: C = None
        self.r: C = None
        self.w: C = None
        self.x: A = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.q: E = None
        self.txt = txt

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

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

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