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

class B:
    def __init__(self, txt: str):
        self.o: C = None
        self.x: D = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.r: E = None
        self.y: F = None
        self.t: F = None
        self.z: G = None
        self.u: C = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.t: E = None
        self.z: D = None
        self.x: G = None
        self.r: G = None
        self.txt = txt

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

n = A("n")
f = B("f")
b = C("b")
l = D("l")
h = E("h")
a = F("a")
g = G("g")
i = C("i")
e = G("e")
j = E("j")

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

class B:
    def __init__(self, txt: str):
        self.o: C = None
        self.x: D = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.r: E = None
        self.y: F = None
        self.t: F = None
        self.z: G = None
        self.u: C = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.t: E = None
        self.z: D = None
        self.x: G = None
        self.r: G = None
        self.txt = txt

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

n = A("n")
f = B("f")
b = C("b")
l = D("l")
h = E("h")
a = F("a")
g = G("g")
i = C("i")
e = G("e")
j = E("j")

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