class A:
    def __init__(self, txt: str):
        self.z: F = None
        self.s: I = None
        self.r: E = None
        self.txt = txt

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

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

class D:
    def __init__(self, txt: str):
        self.s: A = None
        self.y: J = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.x: J = None
        self.w: B = None
        self.z: F = None
        self.q: D = None
        self.o: B = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.x: D = None
        self.s: I = None
        self.v: D = None
        self.o: G = None
        self.p: J = None
        self.u: J = None
        self.r: D = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.o: I = None
        self.t: E = None
        self.q: E = None
        self.z: D = None
        self.r: A = None
        self.w: J = None
        self.u: J = None
        self.x: H = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.u: J = None
        self.x: D = None
        self.z: G = None
        self.q: B = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.w: F = None
        self.y: G = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.v: D = None
        self.z: F = None
        self.w: A = None
        self.o: G = None
        self.q: B = None
        self.txt = txt

j = A("j")
n = B("n")
e = C("e")
f = D("f")
k = E("k")
g = F("g")
l = G("l")
h = H("h")
b = I("b")
i = J("i")

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

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

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

class D:
    def __init__(self, txt: str):
        self.s: A = None
        self.y: J = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.x: J = None
        self.w: B = None
        self.z: F = None
        self.q: D = None
        self.o: B = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.x: D = None
        self.s: I = None
        self.v: D = None
        self.o: G = None
        self.p: J = None
        self.u: J = None
        self.r: D = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.o: I = None
        self.t: E = None
        self.q: E = None
        self.z: D = None
        self.r: A = None
        self.w: J = None
        self.u: J = None
        self.x: H = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.u: J = None
        self.x: D = None
        self.z: G = None
        self.q: B = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.w: F = None
        self.y: G = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.v: D = None
        self.z: F = None
        self.w: A = None
        self.o: G = None
        self.q: B = None
        self.txt = txt

j = A("j")
n = B("n")
e = C("e")
f = D("f")
k = E("k")
g = F("g")
l = G("l")
h = H("h")
b = I("b")
i = J("i")

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