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

class B:
    def __init__(self, txt: str):
        self.y: H = None
        self.v: C = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.o: B = None
        self.s: H = None
        self.t: B = None
        self.u: A = None
        self.q: A = None
        self.w: A = None
        self.z: B = None
        self.x: A = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.y: H = None
        self.u: H = None
        self.r: E = None
        self.o: E = None
        self.q: G = None
        self.txt = txt

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

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

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

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

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

class B:
    def __init__(self, txt: str):
        self.y: H = None
        self.v: C = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.o: B = None
        self.s: H = None
        self.t: B = None
        self.u: A = None
        self.q: A = None
        self.w: A = None
        self.z: B = None
        self.x: A = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.y: H = None
        self.u: H = None
        self.r: E = None
        self.o: E = None
        self.q: G = None
        self.txt = txt

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

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

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

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

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