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

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

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

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

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

class F:
    def __init__(self, txt: str):
        self.v: D = None
        self.t: H = None
        self.u: H = None
        self.s: A = None
        self.z: J = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.u: C = None
        self.z: D = None
        self.w: B = None
        self.q: C = None
        self.x: B = None
        self.y: D = None
        self.s: B = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.v: C = None
        self.y: F = None
        self.r: J = None
        self.z: A = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.z: H = None
        self.r: A = None
        self.v: J = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.t: A = None
        self.p: B = None
        self.z: C = None
        self.r: H = None
        self.txt = txt

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

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

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

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

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

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

class F:
    def __init__(self, txt: str):
        self.v: D = None
        self.t: H = None
        self.u: H = None
        self.s: A = None
        self.z: J = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.u: C = None
        self.z: D = None
        self.w: B = None
        self.q: C = None
        self.x: B = None
        self.y: D = None
        self.s: B = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.v: C = None
        self.y: F = None
        self.r: J = None
        self.z: A = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.z: H = None
        self.r: A = None
        self.v: J = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.t: A = None
        self.p: B = None
        self.z: C = None
        self.r: H = None
        self.txt = txt

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

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