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

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

class C:
    def __init__(self, txt: str):
        self.z: F = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.o: G = None
        self.q: G = None
        self.r: E = None
        self.p: C = None
        self.u: B = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.u: E = None
        self.txt = txt

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

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

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

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

class C:
    def __init__(self, txt: str):
        self.z: F = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.o: G = None
        self.q: G = None
        self.r: E = None
        self.p: C = None
        self.u: B = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.u: E = None
        self.txt = txt

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

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

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