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

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

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

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

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

class F:
    def __init__(self, txt: str):
        self.u: E = None
        self.t: I = None
        self.y: I = None
        self.r: H = None
        self.v: A = None
        self.q: A = None
        self.s: I = None
        self.w: I = None
        self.z: C = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.o: E = None
        self.r: I = None
        self.y: B = None
        self.w: F = None
        self.p: I = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.x: C = None
        self.r: E = None
        self.txt = txt

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

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

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

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

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

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

class F:
    def __init__(self, txt: str):
        self.u: E = None
        self.t: I = None
        self.y: I = None
        self.r: H = None
        self.v: A = None
        self.q: A = None
        self.s: I = None
        self.w: I = None
        self.z: C = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.o: E = None
        self.r: I = None
        self.y: B = None
        self.w: F = None
        self.p: I = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.x: C = None
        self.r: E = None
        self.txt = txt

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

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