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

class B:
    def __init__(self, txt: str):
        self.v: G = None
        self.u: C = None
        self.q: C = None
        self.p: E = None
        self.o: A = None
        self.s: E = None
        self.txt = txt

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

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

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

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

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

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

class I:
    def __init__(self, txt: str):
        self.q: G = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.v: G = None
        self.u: C = None
        self.q: C = None
        self.p: E = None
        self.o: A = None
        self.s: E = None
        self.txt = txt

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

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

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

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

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

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

class I:
    def __init__(self, txt: str):
        self.q: G = None
        self.txt = txt

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

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