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

class B:
    def __init__(self, txt: str):
        self.y: G = None
        self.v: H = None
        self.t: A = None
        self.s: C = None
        self.txt = txt

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

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

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

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

class G:
    def __init__(self, txt: str):
        self.q: H = None
        self.y: H = None
        self.t: H = None
        self.r: B = None
        self.w: E = None
        self.txt = txt

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

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

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

class B:
    def __init__(self, txt: str):
        self.y: G = None
        self.v: H = None
        self.t: A = None
        self.s: C = None
        self.txt = txt

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

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

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

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

class G:
    def __init__(self, txt: str):
        self.q: H = None
        self.y: H = None
        self.t: H = None
        self.r: B = None
        self.w: E = None
        self.txt = txt

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

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

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