class A:
    def __init__(self, txt: str):
        self.x: H = None
        self.z: I = None
        self.s: H = None
        self.o: I = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.x: B = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.r: E = None
        self.p: H = None
        self.s: E = None
        self.y: E = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.z: H = None
        self.s: G = None
        self.r: I = None
        self.y: G = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.r: E = None
        self.p: A = None
        self.u: D = None
        self.z: A = None
        self.y: I = None
        self.q: E = None
        self.w: H = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.u: E = None
        self.v: J = None
        self.p: F = None
        self.r: F = None
        self.w: D = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.u: F = None
        self.p: B = None
        self.v: C = None
        self.q: C = None
        self.t: G = None
        self.z: J = None
        self.x: F = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.s: J = None
        self.z: B = None
        self.w: E = None
        self.y: B = None
        self.txt = txt

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

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

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

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

class C:
    def __init__(self, txt: str):
        self.x: B = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.r: E = None
        self.p: H = None
        self.s: E = None
        self.y: E = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.z: H = None
        self.s: G = None
        self.r: I = None
        self.y: G = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.r: E = None
        self.p: A = None
        self.u: D = None
        self.z: A = None
        self.y: I = None
        self.q: E = None
        self.w: H = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.u: E = None
        self.v: J = None
        self.p: F = None
        self.r: F = None
        self.w: D = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.u: F = None
        self.p: B = None
        self.v: C = None
        self.q: C = None
        self.t: G = None
        self.z: J = None
        self.x: F = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.s: J = None
        self.z: B = None
        self.w: E = None
        self.y: B = None
        self.txt = txt

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

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

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