class A:
    def __init__(self, txt: str):
        self.z: H = None
        self.y: H = None
        self.p: C = None
        self.x: B = None
        self.u: D = None
        self.v: F = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.z: D = None
        self.p: F = None
        self.u: A = None
        self.x: I = None
        self.v: A = None
        self.y: D = None
        self.s: I = None
        self.r: H = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.w: F = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.o: A = None
        self.s: A = None
        self.v: C = None
        self.t: E = None
        self.x: A = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.x: H = None
        self.w: B = None
        self.u: A = None
        self.txt = txt

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

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

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

class C:
    def __init__(self, txt: str):
        self.z: D = None
        self.p: F = None
        self.u: A = None
        self.x: I = None
        self.v: A = None
        self.y: D = None
        self.s: I = None
        self.r: H = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.w: F = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.o: A = None
        self.s: A = None
        self.v: C = None
        self.t: E = None
        self.x: A = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.x: H = None
        self.w: B = None
        self.u: A = None
        self.txt = txt

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

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