class A:
    def __init__(self, txt: str):
        self.s: G = None
        self.w: B = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.p: H = None
        self.o: F = None
        self.y: D = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.q: F = None
        self.t: F = None
        self.z: I = None
        self.s: A = None
        self.txt = txt

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

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

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

class H:
    def __init__(self, txt: str):
        self.y: A = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.s: D = None
        self.x: G = None
        self.r: C = None
        self.p: G = None
        self.v: G = None
        self.o: D = None
        self.w: C = None
        self.t: D = None
        self.q: H = None
        self.txt = txt

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

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

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

class C:
    def __init__(self, txt: str):
        self.p: H = None
        self.o: F = None
        self.y: D = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.q: F = None
        self.t: F = None
        self.z: I = None
        self.s: A = None
        self.txt = txt

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

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

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

class H:
    def __init__(self, txt: str):
        self.y: A = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.s: D = None
        self.x: G = None
        self.r: C = None
        self.p: G = None
        self.v: G = None
        self.o: D = None
        self.w: C = None
        self.t: D = None
        self.q: H = None
        self.txt = txt

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

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