class A:
    def __init__(self, txt: str):
        self.z: A = None
        self.s: F = None
        self.t: G = None
        self.y: G = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.x: C = None
        self.r: D = None
        self.u: F = None
        self.z: E = None
        self.w: E = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.v: B = None
        self.o: G = None
        self.t: B = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.w: E = None
        self.q: B = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.x: F = None
        self.z: H = None
        self.r: C = None
        self.y: C = None
        self.w: E = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.t: C = None
        self.u: A = None
        self.p: C = None
        self.s: A = None
        self.q: G = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.x: C = None
        self.r: D = None
        self.u: F = None
        self.z: E = None
        self.w: E = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.v: B = None
        self.o: G = None
        self.t: B = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.w: E = None
        self.q: B = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.x: F = None
        self.z: H = None
        self.r: C = None
        self.y: C = None
        self.w: E = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.t: C = None
        self.u: A = None
        self.p: C = None
        self.s: A = None
        self.q: G = None
        self.txt = txt

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

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