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

class B:
    def __init__(self, txt: str):
        self.v: A = None
        self.w: H = None
        self.y: D = None
        self.t: H = None
        self.x: F = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.v: E = None
        self.t: E = None
        self.p: F = None
        self.y: F = None
        self.q: A = None
        self.txt = txt

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

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

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

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

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

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

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

class B:
    def __init__(self, txt: str):
        self.v: A = None
        self.w: H = None
        self.y: D = None
        self.t: H = None
        self.x: F = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.v: E = None
        self.t: E = None
        self.p: F = None
        self.y: F = None
        self.q: A = None
        self.txt = txt

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

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

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

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

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

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

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