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

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

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

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

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

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

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

class H:
    def __init__(self, txt: str):
        self.q: G = None
        self.x: I = None
        self.z: G = None
        self.v: B = None
        self.r: A = None
        self.t: I = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.t: A = None
        self.v: A = None
        self.x: E = None
        self.u: G = None
        self.o: F = None
        self.y: G = None
        self.txt = txt

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

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

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

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

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

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

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

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

class H:
    def __init__(self, txt: str):
        self.q: G = None
        self.x: I = None
        self.z: G = None
        self.v: B = None
        self.r: A = None
        self.t: I = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.t: A = None
        self.v: A = None
        self.x: E = None
        self.u: G = None
        self.o: F = None
        self.y: G = None
        self.txt = txt

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

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