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

class B:
    def __init__(self, txt: str):
        self.y: C = None
        self.w: J = None
        self.z: E = None
        self.o: A = None
        self.v: H = None
        self.txt = txt

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

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

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

class F:
    def __init__(self, txt: str):
        self.q: H = None
        self.y: C = None
        self.t: A = None
        self.w: A = None
        self.p: A = None
        self.z: C = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.u: C = None
        self.t: B = None
        self.s: E = None
        self.y: D = None
        self.o: J = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.u: E = None
        self.q: J = None
        self.z: G = None
        self.w: J = None
        self.s: A = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.s: G = None
        self.v: B = None
        self.w: G = None
        self.r: C = None
        self.q: I = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.y: C = None
        self.w: J = None
        self.z: E = None
        self.o: A = None
        self.v: H = None
        self.txt = txt

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

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

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

class F:
    def __init__(self, txt: str):
        self.q: H = None
        self.y: C = None
        self.t: A = None
        self.w: A = None
        self.p: A = None
        self.z: C = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.u: C = None
        self.t: B = None
        self.s: E = None
        self.y: D = None
        self.o: J = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.u: E = None
        self.q: J = None
        self.z: G = None
        self.w: J = None
        self.s: A = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.s: G = None
        self.v: B = None
        self.w: G = None
        self.r: C = None
        self.q: I = None
        self.txt = txt

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

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