class A:
    def __init__(self, txt: str):
        self.z: G = None
        self.x: H = None
        self.y: I = None
        self.r: E = None
        self.o: E = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.p: I = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.u: B = None
        self.t: A = None
        self.s: D = None
        self.x: G = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.u: I = None
        self.txt = txt

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

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

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

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

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

class C:
    def __init__(self, txt: str):
        self.p: I = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.u: B = None
        self.t: A = None
        self.s: D = None
        self.x: G = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.u: I = None
        self.txt = txt

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

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

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

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