class A:
    def __init__(self, txt: str):
        self.q: F = None
        self.s: G = None
        self.p: G = None
        self.v: I = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.o: G = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.v: I = None
        self.y: H = None
        self.u: G = None
        self.r: B = None
        self.s: E = None
        self.o: B = None
        self.t: H = None
        self.z: I = None
        self.w: J = None
        self.q: E = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.t: H = None
        self.q: A = None
        self.v: H = None
        self.w: J = None
        self.p: H = None
        self.u: D = None
        self.s: D = None
        self.y: A = None
        self.o: G = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.y: E = None
        self.x: H = None
        self.u: A = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.t: D = None
        self.x: B = None
        self.q: B = None
        self.y: D = None
        self.w: I = None
        self.v: J = None
        self.o: C = None
        self.p: E = None
        self.s: I = None
        self.r: A = None
        self.txt = txt

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

class J:
    def __init__(self, txt: str):
        self.x: G = None
        self.txt = txt

a = A("a")
l = B("l")
b = C("b")
i = D("i")
d = E("d")
g = F("g")
k = G("k")
m = H("m")
h = I("h")
f = J("f")

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

class B:
    def __init__(self, txt: str):
        self.o: G = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.v: I = None
        self.y: H = None
        self.u: G = None
        self.r: B = None
        self.s: E = None
        self.o: B = None
        self.t: H = None
        self.z: I = None
        self.w: J = None
        self.q: E = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.t: H = None
        self.q: A = None
        self.v: H = None
        self.w: J = None
        self.p: H = None
        self.u: D = None
        self.s: D = None
        self.y: A = None
        self.o: G = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.y: E = None
        self.x: H = None
        self.u: A = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.t: D = None
        self.x: B = None
        self.q: B = None
        self.y: D = None
        self.w: I = None
        self.v: J = None
        self.o: C = None
        self.p: E = None
        self.s: I = None
        self.r: A = None
        self.txt = txt

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

class J:
    def __init__(self, txt: str):
        self.x: G = None
        self.txt = txt

a = A("a")
l = B("l")
b = C("b")
i = D("i")
d = E("d")
g = F("g")
k = G("k")
m = H("m")
h = I("h")
f = J("f")

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