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

class B:
    def __init__(self, txt: str):
        self.r: A = None
        self.z: H = None
        self.x: E = None
        self.q: C = None
        self.u: J = None
        self.w: F = None
        self.txt = txt

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

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

class E:
    def __init__(self, txt: str):
        self.x: D = None
        self.t: J = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.q: A = None
        self.p: H = None
        self.o: B = None
        self.txt = txt

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

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

class I:
    def __init__(self, txt: str):
        self.o: F = None
        self.x: C = None
        self.t: H = None
        self.s: J = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.s: I = None
        self.u: A = None
        self.y: E = None
        self.o: B = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.r: A = None
        self.z: H = None
        self.x: E = None
        self.q: C = None
        self.u: J = None
        self.w: F = None
        self.txt = txt

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

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

class E:
    def __init__(self, txt: str):
        self.x: D = None
        self.t: J = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.q: A = None
        self.p: H = None
        self.o: B = None
        self.txt = txt

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

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

class I:
    def __init__(self, txt: str):
        self.o: F = None
        self.x: C = None
        self.t: H = None
        self.s: J = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.s: I = None
        self.u: A = None
        self.y: E = None
        self.o: B = None
        self.txt = txt

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

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