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

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

class C:
    def __init__(self, txt: str):
        self.t: H = None
        self.o: A = None
        self.w: B = None
        self.p: E = None
        self.txt = txt

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

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

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

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

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

e = A("e")
k = B("k")
i = C("i")
a = D("a")
m = E("m")
b = F("b")
d = G("d")
g = H("g")
n = F("n")

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

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

class C:
    def __init__(self, txt: str):
        self.t: H = None
        self.o: A = None
        self.w: B = None
        self.p: E = None
        self.txt = txt

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

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

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

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

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

e = A("e")
k = B("k")
i = C("i")
a = D("a")
m = E("m")
b = F("b")
d = G("d")
g = H("g")
n = F("n")

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