class A:
    def __init__(self, txt: str):
        self.s: B = None
        self.v: G = None
        self.u: B = None
        self.r: E = None
        self.x: C = None
        self.p: D = None
        self.z: E = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.t: D = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.w: E = None
        self.z: A = None
        self.x: A = None
        self.u: F = None
        self.t: D = None
        self.o: C = None
        self.v: E = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.q: G = None
        self.x: D = None
        self.t: G = None
        self.txt = txt

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

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

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

class C:
    def __init__(self, txt: str):
        self.t: D = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.w: E = None
        self.z: A = None
        self.x: A = None
        self.u: F = None
        self.t: D = None
        self.o: C = None
        self.v: E = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.q: G = None
        self.x: D = None
        self.t: G = None
        self.txt = txt

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

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