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

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

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

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

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

class F:
    def __init__(self, txt: str):
        self.s: B = None
        self.o: H = None
        self.y: B = None
        self.u: H = None
        self.txt = txt

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

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

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

class J:
    def __init__(self, txt: str):
        self.y: C = None
        self.p: A = None
        self.x: I = None
        self.txt = txt

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

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

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

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

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

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

class F:
    def __init__(self, txt: str):
        self.s: B = None
        self.o: H = None
        self.y: B = None
        self.u: H = None
        self.txt = txt

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

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

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

class J:
    def __init__(self, txt: str):
        self.y: C = None
        self.p: A = None
        self.x: I = None
        self.txt = txt

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

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