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

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

class C:
    def __init__(self, txt: str):
        self.t: H = None
        self.x: E = None
        self.v: F = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.x: E = None
        self.r: H = None
        self.y: B = None
        self.s: A = None
        self.q: G = None
        self.v: E = None
        self.o: A = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.r: C = None
        self.o: D = None
        self.txt = txt

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

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

class I:
    def __init__(self, txt: str):
        self.v: F = None
        self.s: A = None
        self.w: D = None
        self.txt = txt

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

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

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

class C:
    def __init__(self, txt: str):
        self.t: H = None
        self.x: E = None
        self.v: F = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.x: E = None
        self.r: H = None
        self.y: B = None
        self.s: A = None
        self.q: G = None
        self.v: E = None
        self.o: A = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.r: C = None
        self.o: D = None
        self.txt = txt

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

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

class I:
    def __init__(self, txt: str):
        self.v: F = None
        self.s: A = None
        self.w: D = None
        self.txt = txt

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

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