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

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

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

class D:
    def __init__(self, txt: str):
        self.y: B = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.w: D = None
        self.z: A = None
        self.v: I = None
        self.q: B = None
        self.o: I = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.x: A = None
        self.v: J = None
        self.w: E = None
        self.t: F = None
        self.y: H = None
        self.p: C = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.w: F = None
        self.t: G = None
        self.r: C = None
        self.q: G = None
        self.txt = txt

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

class J:
    def __init__(self, txt: str):
        self.t: I = None
        self.v: I = None
        self.q: D = None
        self.u: H = None
        self.p: I = None
        self.txt = txt

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

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

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

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

class D:
    def __init__(self, txt: str):
        self.y: B = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.w: D = None
        self.z: A = None
        self.v: I = None
        self.q: B = None
        self.o: I = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.x: A = None
        self.v: J = None
        self.w: E = None
        self.t: F = None
        self.y: H = None
        self.p: C = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.w: F = None
        self.t: G = None
        self.r: C = None
        self.q: G = None
        self.txt = txt

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

class J:
    def __init__(self, txt: str):
        self.t: I = None
        self.v: I = None
        self.q: D = None
        self.u: H = None
        self.p: I = None
        self.txt = txt

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

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