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

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

class C:
    def __init__(self, txt: str):
        self.x: E = None
        self.p: D = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.v: H = None
        self.p: A = None
        self.u: B = None
        self.x: E = None
        self.w: F = None
        self.s: A = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.w: B = None
        self.y: A = None
        self.v: H = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.v: D = None
        self.r: C = None
        self.txt = txt

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

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

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

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

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

class C:
    def __init__(self, txt: str):
        self.x: E = None
        self.p: D = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.v: H = None
        self.p: A = None
        self.u: B = None
        self.x: E = None
        self.w: F = None
        self.s: A = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.w: B = None
        self.y: A = None
        self.v: H = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.v: D = None
        self.r: C = None
        self.txt = txt

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

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

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

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