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

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

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

class D:
    def __init__(self, txt: str):
        self.s: C = None
        self.q: G = None
        self.p: F = None
        self.y: I = None
        self.t: F = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.v: I = None
        self.t: G = None
        self.s: B = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.v: G = None
        self.r: E = None
        self.q: C = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.r: B = None
        self.p: I = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.s: D = None
        self.q: D = None
        self.u: F = None
        self.y: B = None
        self.x: F = None
        self.v: G = None
        self.txt = txt

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

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

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

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

class D:
    def __init__(self, txt: str):
        self.s: C = None
        self.q: G = None
        self.p: F = None
        self.y: I = None
        self.t: F = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.v: I = None
        self.t: G = None
        self.s: B = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.v: G = None
        self.r: E = None
        self.q: C = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.r: B = None
        self.p: I = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.s: D = None
        self.q: D = None
        self.u: F = None
        self.y: B = None
        self.x: F = None
        self.v: G = None
        self.txt = txt

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

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