class A:
    def __init__(self, txt: str):
        self.o: I = None
        self.s: C = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.y: H = None
        self.z: F = None
        self.w: H = None
        self.t: G = None
        self.u: E = None
        self.r: H = None
        self.x: C = None
        self.o: H = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.r: G = None
        self.s: C = None
        self.t: E = None
        self.w: B = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.q: D = None
        self.w: A = None
        self.v: D = None
        self.s: A = None
        self.t: I = None
        self.y: I = None
        self.p: I = None
        self.x: B = None
        self.r: F = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.o: G = None
        self.p: C = None
        self.z: H = None
        self.r: B = None
        self.v: G = None
        self.x: G = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.z: C = None
        self.t: B = None
        self.s: D = None
        self.p: D = None
        self.y: A = None
        self.u: E = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.o: G = None
        self.s: E = None
        self.x: H = None
        self.w: F = None
        self.z: D = None
        self.q: F = None
        self.y: H = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.y: H = None
        self.z: F = None
        self.w: H = None
        self.t: G = None
        self.u: E = None
        self.r: H = None
        self.x: C = None
        self.o: H = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.r: G = None
        self.s: C = None
        self.t: E = None
        self.w: B = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.q: D = None
        self.w: A = None
        self.v: D = None
        self.s: A = None
        self.t: I = None
        self.y: I = None
        self.p: I = None
        self.x: B = None
        self.r: F = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.o: G = None
        self.p: C = None
        self.z: H = None
        self.r: B = None
        self.v: G = None
        self.x: G = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.z: C = None
        self.t: B = None
        self.s: D = None
        self.p: D = None
        self.y: A = None
        self.u: E = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.o: G = None
        self.s: E = None
        self.x: H = None
        self.w: F = None
        self.z: D = None
        self.q: F = None
        self.y: H = None
        self.txt = txt

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

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