class A:
    def __init__(self, txt: str):
        self.s: G = None
        self.v: C = None
        self.u: F = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.x: D = None
        self.p: D = None
        self.v: A = None
        self.y: A = None
        self.u: G = None
        self.o: A = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.p: H = None
        self.v: A = None
        self.o: I = None
        self.w: G = None
        self.r: B = None
        self.x: I = None
        self.y: G = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.p: H = None
        self.o: B = None
        self.s: G = None
        self.v: G = None
        self.q: G = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.p: A = None
        self.s: C = None
        self.q: B = None
        self.r: G = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.q: I = None
        self.x: B = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.o: G = None
        self.t: F = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.t: H = None
        self.z: B = None
        self.s: E = None
        self.y: I = None
        self.o: H = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.x: D = None
        self.p: D = None
        self.v: A = None
        self.y: A = None
        self.u: G = None
        self.o: A = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.p: H = None
        self.v: A = None
        self.o: I = None
        self.w: G = None
        self.r: B = None
        self.x: I = None
        self.y: G = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.p: H = None
        self.o: B = None
        self.s: G = None
        self.v: G = None
        self.q: G = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.p: A = None
        self.s: C = None
        self.q: B = None
        self.r: G = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.q: I = None
        self.x: B = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.o: G = None
        self.t: F = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.t: H = None
        self.z: B = None
        self.s: E = None
        self.y: I = None
        self.o: H = None
        self.txt = txt

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

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